How to save data in a program

*Small note:
I think if you store your files in the dataPath (e.g. dataPath("count.txt")) you don’t need to request permission, but I don’t know if some Android devices let you store data only then , if you request this, so do it to be safe.