Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4 Risposte
6580 Visualizzazioni

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
Abbandona

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

Autore

Hi @Mohammed Amal Thank you.

Do you have sample code that does this?

Post correlati Risposte Visualizzazioni Attività
6
set 22
67375
0
set 17
3671
3
ago 24
1890
0
giu 23
2947
1
gen 23
6394