How do I use files to store data effectively? (SOLVED)

I used files to store the data for my project but when I bundled it for Android, I realized that that the file was not created. PS the file was opened in “a+” mode.

How do I fix this please?

On mobiles you have to create files in specific allowed places. Defold API provides sys.get_save_file() function to get a valid path for a file.

And I have created a native extension with similar, but extended functionality. https://www.defold.com/community/projects/121601/

2 Likes

Thanks