title: How to call the async task in private void
body: <p>i am trying to save some text in a .text file but i dont know how to call the async Task save in private void save_Clic</p>
  
  <pre><code>private void save_Click(object sender, RoutedEventArgs e)
      {
  
      }
  
      async Task save(string filename, string content)
      {
          StorageFolder folder = Windows.Storage.ApplicationData.Current.LocalFolder;
          StorageFile sampleFile = await folder.CreateFileAsync("sample.txt", CreationCollisionOption.ReplaceExisting);
  
          await Windows.Storage.FileIO.WriteTextAsync(sampleFile, "Swift as a shadow");
      }
  </code></pre>