تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4 الردود
6574 أدوات العرض

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?

الصورة الرمزية
إهمال

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

الكاتب

Hi @Mohammed Amal Thank you.

Do you have sample code that does this?

المنشورات ذات الصلة الردود أدوات العرض النشاط
6
سبتمبر 22
67361
0
سبتمبر 17
3669
3
أغسطس 24
1889
0
يونيو 23
2947
1
يناير 23
6391