title: How to get file from Assets folder in my Windows Store App Project?
body: <p>I'm trying to create a phonebook app in windows store apps in which I have to store contacts in a json file. I want to create and access that Json file from my Assets folder in the project.  </p>
  
  <blockquote>
    <p>I have tried following (none of these are working) :</p>
  </blockquote>
  
  <p><a href="http://docs.microsoft.com/en-us/windows/uwp/files/quickstart-reading-and-writing-files" rel="nofollow noreferrer">Create, Write, and Read a file - Microsoft</a></p>
  
  <p><a href="http://blog.jerrynixon.com/2012/06/windows-8-how-to-read-files-in-winrt.html" rel="nofollow noreferrer">Jerry Nixon's Blog about Reading and Writing from Files</a></p>
  
  <p><strong>and many others...</strong>  </p>
  
  <p>I have tried the following code:  </p>
  
  <pre><code>StorageFile SFile = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Assets/Data.txt"));
  
          var display = new Windows.UI.Popups.MessageDialog(SFile.Path);
          await display.ShowAsync();   
  </code></pre>
  
  <p><strong>Its Reading the following File:</strong>
  <a href="https://i.stack.imgur.com/KLcid.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KLcid.jpg" alt="enter image description here"></a></p>
  
  <p><strong>I want it to read the following one:</strong><br>
  <a href="https://i.stack.imgur.com/MWLVP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MWLVP.png" alt="enter image description here"></a></p>
  
  <p>If someone can suggest me the way to do this. Thanks !</p>