Se rendre au contenu
Menu
Cette question a été signalée
4 Réponses
6743 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
67859
0
sept. 17
3858
3
août 24
2211
0
juin 23
3100
1
janv. 23
6768