# Saving & loading data

**URL:** <https://discourse.processing.org/t/saving-loading-data/15636>\
**Category:** Processing for Android\
**Created:** [November 19, 2019, 12:44pm UTC](https://discourse.processing.org/t/saving-loading-data/15636 "2019-11-19T12:44:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chinnah](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@Chinnah](https://discourse.processing.org/u/Chinnah)\
**Post date:** [November 19, 2019, 12:44pm UTC](https://discourse.processing.org/t/saving-loading-data/15636/1 "2019-11-19T12:44:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [November 19, 2019, 1:40pm UTC](https://discourse.processing.org/t/saving-loading-data/15636/2 "2019-11-19T13:40:59Z")

</div>

Hi.  
Read [this](https://discourse.processing.org/t/android-cannot-get-access-to-data-folder/14636/2) topic here.

The first answer can help you to save data.

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

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

```
