Se rendre au contenu
Menu
Cette question a été signalée
4 Réponses
6571 Vues

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
Ignorer

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

Auteur

Hi @Mohammed Amal Thank you.

Do you have sample code that does this?

Publications associées Réponses Vues Activité
6
sept. 22
67359
0
sept. 17
3668
3
août 24
1887
0
juin 23
2945
1
janv. 23
6389