Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | usurun |
Can you write and read variables from a text file?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | usurun |
Can you write and read variables from a text file?
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
Yep its not the same thing we want to write in a text file not a Json
(like setting the text inside the file to anything in a way that you should conserve it when turning off the computer)