This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+3 votes

Can you write and read variables from a text file?

in Engine by (351 points)

1 Answer

–2 votes

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

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

by (713 points)

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

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.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.