The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

WRITE/READ files to/from "user://..." path unsuccessful.

Using "res://..." works fine in Godot (so the code is correct) but once it's exported to Android device, it doesn't return value. I replaced it with "user://..." as recommended, still no success. Any idea why?

Thank you for your time!

Godot version 3.2.3
in Engine by (373 points)

I'm successfully reading/writing on Android using user://savedata.txt (for example). So, I assume the problem must be in your code. Can you post the read/write code?

Thank you for your reply! I changed user:// to user://name.txt and it worked! The reason why I used .savewas because it said so in this link

Oddly enough .save actually worked just fine on my desktop. Anyway, problem solved, huge thanks!

By the way, where is the location of user:// in desktop? I checked "c/users/user", the saved file is not there. Must be somewhere else?

On Windows, it's here:


Additionally, the difference between a .save and a .txt extension shouldn't matter at all. In fact, I just verified that my save works as expected using

Hmm... That's interesting. I'll try it in more android devices with .save and see if it works.

Please log in or register to answer this question.

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.