Modifying a text file in Android

As you suggested, I write a simple code to check that I could save files.

void setup(){
  String[] lines = loadStrings("mac.txt");
  print(lines[0]);
  String words = "jenfokhugihrufgtr";
String[] list = split(words, ' ');

// Writes the strings to a file, each on a separate line
saveStrings("mac.txt", list);
String[] non = loadStrings("mac.txt");
  print(non[0]);
}
void draw(){
}

I executed it in java and it worked, but I executed it in android and it didn’t work. Maybe the “data” folder is only read?