Help with reading and writing to a text file

How would I be able to use defold to create a text file, open that file and write something in to that file. And then read what is written in that text file line by line and get the text for each line. There doesn’t seem to be anywhere explaining how to do this except from a few pages explaining the io.write and other things like that, but they don’t really explain it in enough detail.

In short I would like to know the basics of reading and writing text files using defold, but the references and tutorials don’t really do a very good job at explaining it.

Maybe this can help you.

Have you read the manual on file I/O?

sys.save() and sys.load() are the most straight forward functions for saving and loading files.