public async Task SaveTimeRecordAsync(TimeRecord incoming) { StorageFolder sf = ApplicationData.Current.LocalFolder; StorageFile dbFile = await sf.GetFileAsync(fileName); await FileIO.WriteTextAsync(dbFile, incoming.ConvertToString()); }
public void SaveTimeRecord(TimeRecord incoming) { using (StreamWriter sw = new StreamWriter(fileName, true, Encoding.ASCII)) { sw.WriteLine(incoming.ConvertToString()); } }