Skip to Content
Menu
This question has been flagged
4 Replies
6640 Rodiniai

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?

Portretas
Atmesti

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

Autorius

Hi @Mohammed Amal Thank you.

Do you have sample code that does this?

Related Posts Replies Rodiniai Veikla
6
rugs. 22
67493
0
rugs. 17
3728
3
rugp. 24
1947
0
birž. 23
2971
1
saus. 23
6502