Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
4 Besvarelser
6637 Visninger

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
Kassér

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

Forfatter

Hi @Mohammed Amal Thank you.

Do you have sample code that does this?

Related Posts Besvarelser Visninger Aktivitet
6
sep. 22
67465
0
sep. 17
3727
3
aug. 24
1936
0
jun. 23
2963
1
jan. 23
6484