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

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
67841
0
вер. 17
3841
3
серп. 24
2189
0
черв. 23
3098
1
січ. 23
6741