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

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
67417
0
вер. 17
3695
3
серп. 24
1896
0
черв. 23
2951
1
січ. 23
6415