public void Save(string fileToSave) { using (StreamWriter sw = new StreamWriter(fileToSave)) { sw.WriteLine(Description); sw.WriteLine(Results); sw.WriteLine(LastUsed.ToString()); } }
public void Save(string path) { File.WriteAllText(path, Description + Environment.NewLine + Results + Environment.NewLine + LastUsed.ToString()); }