title: How to read a File from the local storage (say "C:\\" ) using UWP Backbround Task?
body: <p>Is there any way to read a file from the local drive(say <code>C:\\eUWP\\UnReleasedFeatureTest.txt</code> )
  I have a background task which has to read some data from a file and the path is <code>C:\\eUWP</code>.</p>
  
  <p>Below is my sample code snippet.</p>
  
  <pre><code>[DataContract]
  public sealed class ConfigFileDetail
  {
      [DataMember]
      public string TestingUnreleasedFeatures { get; set; }                
  }
  public void Run(IBackgroundTaskInstance taskInstance)
  {
      string filepath = "C:\\eUWP\\UnReleasedFeatureTest.txt";
      string result = string.Empty;
      try
      {
          if (File.Exists(filepath)) { 
              using (StreamReader r = new StreamReader(new FileStream(filepath, FileMode.Open)))
              {
                  var jsonData = r.ReadToEnd();
                  DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(typeof(ConfigFileDetail));
                  MemoryStream stream = new MemoryStream(Encoding.UTF8.GetBytes(jsonData));
                  stream.Position = 0;
                  ConfigFileDetail dataContractDetail = (ConfigFileDetail)jsonSerializer.ReadObject(stream);
                  ShowToast("Hi Praveer, I'm Electron's UWP sidekick" + dataContractDetail.TestingUnreleasedFeatures);
                  UpdateTile("Hi Praveer see result, I'm Electron's UWP sidekick");
              }
          }
      }
      catch(Exception e)
      {
          Console.WriteLine("The error message is " + e.ToString());
      }
  }
  </code></pre>
  
  <p>I also tried using <code>StorageFile</code> , but unfortunately, it didn't work </p>
  
  <pre><code>Windows.Storage.StorageFolder storageFolder = 
     Windows.Storage.ApplicationData.Current.LocalFolder;
  Windows.Storage.StorageFile sampleFile = 
     await storageFolder.GetFileAsync("E:\\eUWP\\UnReleasedFeatureTest.txt");
  </code></pre>
  
  <p>is there any way I can access the file from the local drive from the background Task ?</p>