Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4 Răspunsuri
6668 Vizualizări

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?

Imagine profil
Abandonează

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?

Related Posts Răspunsuri Vizualizări Activitate
6
sept. 22
67634
0
sept. 17
3769
3
aug. 24
2071
0
iun. 23
3002
1
ian. 23
6556