Saving & loading data

I am trying to make a simple game with a high score using APDE on my phone, but there is no way i had fond that could help me with that. I have tried using loadBytes() & saveBytes() but every time i leave the game the data get reset back. Now i just need a simple way to edit a text file in the processing but if there is any other way plz help.

1 Like

Hi.
Read this topic here.

The first answer can help you to save data.

Edit: For saving data from an array you can use
something like:

holder = new String[totalpoints];
etc.
saveStrings(directory + pointsFolder + inptxt + ".txt", holder);
1 Like