Fixed save function with the right method call "toSave".
This will fix initialization of text file with existing text, which currently crashes the program.