I know that you can get the whole text file by doing:
text.read()
but that imports the whole text file, and cannot read ‘enter’ so replaces it with a rectangle, but what if i wanted to read say; line 1, and line 2 separately from each other, i think you used to be able to do
I’m more pointing into the direction of reading .ini, .properties or .config files. This comes on an higher abstraction level.
JSON can be helpful too. It is focused on converting between Python objects and String representations. Saving/Loading strings is mentioned above already :D.