How to save Level Progress?

So, that’s the code:

String[] levelProgress;

void setup() {
  levelProgress = new String[5];
  saveStrings("file.txt", levelProgress);
  loadStrings("file.txt");
}

void draw() {
  if (mouseY < 200 && mousePressed) {
    levelProgress[0] = "level0Finished";
    saveStrings("file.txt", levelProgress);
  }
  println(levelProgress[0]);
  if ("level0Finished".equals(levelProgress[0])) {
    println("Works!");
  } else {
    println("Ummm...");
  }
}

This should work once you created a sketch folder. And I know that it does say “Works!” after you clicked the first time, but after the first time it should print the right value automaticly, since it is now saved. Right?