Пример #1
0
 public void Save(string fileToSave)
 {
     using (StreamWriter sw = new StreamWriter(fileToSave))
     {
         sw.WriteLine(Description);
         sw.WriteLine(Results);
         sw.WriteLine(LastUsed.ToString());
     }
 }
Пример #2
0
 public void Save(string path)
 {
     File.WriteAllText(path, Description + Environment.NewLine + Results + Environment.NewLine + LastUsed.ToString());
 }