Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odgovori
6573 Prikazi

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?

Avatar
Opusti

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

Avtor

Hi @Mohammed Amal Thank you.

Do you have sample code that does this?

Related Posts Odgovori Prikazi Aktivnost
6
sep. 22
67359
0
sep. 17
3668
3
avg. 24
1887
0
jun. 23
2945
1
jan. 23
6389