Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
4 Antworten
6635 Ansichten

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
Verwerfen

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

Autor

Hi @Mohammed Amal Thank you.

Do you have sample code that does this?

Verknüpfte Beiträge Antworten Ansichten Aktivität
6
Sept. 22
67465
0
Sept. 17
3725
3
Aug. 24
1934
0
Juni 23
2963
1
Jan. 23
6484