Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
6497 Vistas

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?

Publicaciones relacionadas Respuestas Vistas Actividad
6
sept 22
67149
0
sept 17
3583
3
ago 24
1814
0
jun 23
2894
1
ene 23
6272