+ 1

Python opening and editing .txt files

Can you do this on Sololearn code playground? I assume not, but I saw a comment on one of the lessons mentioning it, so I am curious.

3rd Oct 2018, 12:36 AM
DrChicken24
DrChicken24 - avatar
3 Réponses
+ 3
Hmm. I now think your question is about interactivity and persistence, when previously I read this as "reading in a text file, editing it programmatically, displaying changes". As far as I know, you can only programmatically edit files you yourself create each time your program runs. <-- (better?) My original point was that if I/others can learn about text file I/O performance and have that pass for learning, normal "read/write/edit" to learn about file I/O seems comparatively safe.
3rd Oct 2018, 3:04 AM
Kirk Schafer
Kirk Schafer - avatar
+ 2
I tried testing language boundary conditions of .txt files here: https://code.sololearn.com/cV414bDIoEE6/?ref=app ...and in other langs I create (or suggest creating) files so people can experiment with file I/O (mostly c++) There's no persistence (you always have to recreate your files) but perhaps that's a way of saying go ahead and use the language, they'll clean up when you're done?
3rd Oct 2018, 1:45 AM
Kirk Schafer
Kirk Schafer - avatar
+ 2
Uh, what? Im just asking if you can do r and e in code playground and i figured out you can, but now im really curious so what is that??
3rd Oct 2018, 1:55 AM
DrChicken24
DrChicken24 - avatar