Skip to Content
Menú
This question has been flagged
4 Respostes
6520 Vistes

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
Descartar

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 Respostes Vistes Activitat
6
de set. 22
67212
0
de set. 17
3608
3
d’ag. 24
1851
0
de juny 23
2910
1
de gen. 23
6314