title: Copy file from app installation folder to Local storage
body: <p>I'm attempting to copy a file from the installed location of my Windows 8 app to it's local storage. I've been researching around and trying to do this to no avail. This is what I have come up with so far but I'm not sure where I'm going wrong.</p>
  
  <pre><code>    private async void TransferToStorage()
      {
  
  
          try
          {
              // Get file from appx install folder
              Windows.ApplicationModel.Package package = Windows.ApplicationModel.Package.Current;
              Windows.Storage.StorageFolder installedLocation = package.InstalledLocation;
              StorageFile temp1 = await installedLocation.GetFileAsync("track.xml");
              // Read the file
              var lines = await FileIO.ReadLinesAsync(temp1);
  
              //Create the file in local storage
              StorageFile myStorageFile = await localFolder.CreateFileAsync("track_iso.xml", CreationCollisionOption.ReplaceExisting);
              // Write to it
              await FileIO.WriteLinesAsync(myStorageFile, lines);
  
          }
          catch (Exception)
          {
  
          }
  
      }
  </code></pre>
  
  <p>Any ideas?</p>