示例#1
0
 private async void writeFile_Click(object sender, RoutedEventArgs e)
 {
     string textFilePath = await FileHelper.WriteTextFile(TEXT_FILE_NAME, textBox.Text);
 }
示例#2
0
        private async void ReadFile_Click(object sender, RoutedEventArgs e)
        {
            string str = await FileHelper.ReadTextFile(TEXT_FILE_NAME);

            textBlock.Text = str;
        }