I try to make savefile as follows;
string savedata ="aaaa"; //crypted string
StreamWriter writer = new StreamWriter(Path, false);
writer.WriteLine(savedata);
writer.Flush();
writer.Close();
But in this way ,if you exit the application before the writing is finished, you may not be able to save the file.
How can we address this issue?