Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4 Відповіді
6804 Переглядів

I generated a txt file when clicking a button using python code and it is automatically  saved to /opt

Is there a way that I can generate a txt file when clicking a button or get the saved txt file from the /opt and download it using browsers. 

Any suggestions of tutorials or documentation about it?

Аватар
Відмінити

Hi, Have you tried urllib package. I think it covers fetching file from system and to download it.

Автор

Hi @Mohammed Amal Thank you.

Do you have sample code that does this?

Related Posts Відповіді Переглядів Дія
6
вер. 22
67972
0
вер. 17
3901
3
серп. 24
2262
0
черв. 23
3146
1
січ. 23
6826