Skip to Content
Menú
This question has been flagged
4 Respostes
6982 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
68247
0
de set. 17
4068
3
d’ag. 24
2436
0
de juny 23
3327
1
de gen. 23
7017