public void SaveToFile(Journal j, string fileName, bool overwrite = false)
 {
     if (overwrite || !File.Exists(fileName))
     {
         File.WriteAllText(fileName, j.ToString());
     }
 }
Exemplo n.º 2
0
 public void Save(string filename, Journal journal, bool overwrite = false)
 {
     if (overwrite || !File.Exists(filename))
     {
         File.WriteAllText(filename, journal.ToString());
     }
 }