Exemplo n.º 1
0
        public async Task SaveTimeRecordAsync(TimeRecord incoming)
        {
            StorageFolder sf     = ApplicationData.Current.LocalFolder;
            StorageFile   dbFile = await sf.GetFileAsync(fileName);

            await FileIO.WriteTextAsync(dbFile, incoming.ConvertToString());
        }
Exemplo n.º 2
0
 public void SaveTimeRecord(TimeRecord incoming)
 {
     using (StreamWriter sw = new StreamWriter(fileName, true, Encoding.ASCII))
     {
         sw.WriteLine(incoming.ConvertToString());
     }
 }