Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4 Antwoorden
6974 Weergaven

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
Annuleer

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

Auteur

Hi @Mohammed Amal Thank you.

Do you have sample code that does this?

Gerelateerde posts Antwoorden Weergaven Activiteit
6
sep. 22
68238
0
sep. 17
4067
3
aug. 24
2426
0
jun. 23
3324
1
jan. 23
7013