Skip to content
← Back to Community
Can't write to files from repl.run
Profile icon
techdk

This program is very simple. It takes in input and writes it to a file. The problem is, when I use this program from repl.run, nothing is written to the file. How do I fix this?

Voters
Profile icon
techdk
Comments
hotnewtop
Profile icon
teaganturner

Here an electronic video stage for education ends up being valuable. From guiding live classes to saving them for playback, making unique course satisfied Many of the results will be general no ifs screenwritermag.com ands or buts. Wide topics yielded may be challenging to gather into a fantastic paper. One should picked a specific piece of a subject to yield a phenomenally connected with paper.

Profile icon
CodingCactus

you can only write to files when you are in the editor in I believe

Profile icon
HenryZelonka1

with open("fileName.py","w") as f:
f.write("Put your text here")

Profile icon
Bookie0

I don’t know the answer to your question, but I don’t think you should be using expletives on repl.it
...just saying

Profile icon
techdk

This is likely a privacy thing or something, but the intention of this file is to be public, so I would like to override that.