Download file from repl.it in repl.it run
Hy. I writing some project in Python3 and by using Repl.it run option (https://marvelousopulentcones.lovrosindicic.repl.run/) every my classmate can use program without having Python on their mobile phone or computer.
Now I want in https://marvelousopulentcones.lovrosindicic.repl.run/ access some .txt file that is in my project or even giving option to download directly from repl.it run. Option to write all line of file in program is bad because file can have a lot line... any idea?
You can't download files in a repl.run website or even edit them. If you want the website user to see the txt file contents you can do
text = open('filename.txt', 'r') textLines = text.readlines() for i in textLines: print(i)