title: Write to a text file in my project's assets folder Windows Phone 8.1
body: <p>I have tried to write to a text file in my project's assets folder. The program runs without error but I couldn't see any content in the text file. Can anyone please help me?</p>
  
  <pre><code>StorageFolder asset_folder = await Package.Current.InstalledLocation.GetFolderAsync("Assets");
  StorageFile asset_file = await asset_folder.CreateFileAsync("TextFile1.txt", CreationCollisionOption.ReplaceExisting);
  using(Stream s_Asset = await asset_file.OpenStreamForWriteAsync())
  {
      await s_Asset.WriteAsync(data, 0, data.Length);
  }
  </code></pre>
  
  <p>The <em>Build Action</em> is also set to <em>Content</em>.</p>
  
  <p>Let me know if I have gone wrong somewhere...</p>