Ejemplo n.º 1
0
 public void DeleteFile()
 {
     if (WSANativeStorageLibrary.DoesFileExist(WSAStorageLibrary.Local, "Test.txt"))
     {
         WSANativeStorageLibrary.DeleteFile(WSAStorageLibrary.Local, "Test.txt");
     }
 }
Ejemplo n.º 2
0
    public void SaveFile()
    {
        var file = WSANativeStorageLibrary.CreateFile(WSAStorageLibrary.Local, "Test.txt");

        string result = WSANativeSerialisation.SerialiseToXML(new Test());

        file.WriteText(result);
    }
Ejemplo n.º 3
0
 public void LoadFile()
 {
     if (WSANativeStorageLibrary.DoesFileExist(WSAStorageLibrary.Local, "Test.txt"))
     {
         WSANativeStorageLibrary.GetFile(WSAStorageLibrary.Local, "Test.txt", result =>
         {
             WSANativeSerialisation.DeserialiseXML <Test>(result.ReadText());
         });
     }
 }