Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4 Replies
6496 Tampilan

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
Buang

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

Penulis

Hi @Mohammed Amal Thank you.

Do you have sample code that does this?

Post Terkait Replies Tampilan Aktivitas
6
Sep 22
67148
0
Sep 17
3582
3
Agu 24
1813
0
Jun 23
2893
1
Jan 23
6270