Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
4 Vastaukset
6624 Näkymät

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
Hylkää

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

Tekijä

Hi @Mohammed Amal Thank you.

Do you have sample code that does this?

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
6
syysk. 22
67454
0
syysk. 17
3715
3
elok. 24
1933
0
kesäk. 23
2961
1
tammik. 23
6457