Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
6526 Widoki

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?

Awatar
Odrzuć

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

Autor

Hi @Mohammed Amal Thank you.

Do you have sample code that does this?

Powiązane posty Odpowiedzi Widoki Czynność
6
wrz 22
67228
0
wrz 17
3613
3
sie 24
1857
0
cze 23
2912
1
sty 23
6319