How to write and read from a TextFile

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By usurun

Can you write and read variables from a text file?

:bust_in_silhouette: Reply From: gmaps

Check this link, its the same question.
You can do it, the best way is to use a standard format like JSON.

https://forum.godotengine.org/6491/read-%26-write

The linked question only indicates how to work with files that are GENERATED by the application. Not ones that ship with the application.

Allen Kennedy Jr. | 2020-05-18 19:39

This is very much not the same question. The question was whether you can write into a TEXT file, not a json. I, for one, need to paste a string into a text file using godot, and I need it to be in the .txt format, which the question you’ve linked doesn’t mention.

mymokol | 2022-01-09 16:46