private async void submit_comment(object sender, RoutedEventArgs e) { String input = txtInput.Text;
//getting the DocumentsLibrary folder where a file is to be created and then creating the example.txt file
//and storing the StorageFile object that is returned:
try
{
StorageFolder storageFolder = KnownFolders.DocumentsLibrary;
StorageFile sampleFile = await storageFolder.GetFileAsync("sample.txt");
//Writing to file
await Windows.Storage.FileIO.WriteTextAsync(sampleFile, input);
}catch(Exception)
{
}
}