OpenFileDialog of1 = new OpenFileDialog();
          
           if (of1.ShowDialog() == DialogResult.OK)
           {
               textBox1.Text = of1.FileName;
           }

FileStream fs1 = new FileStream(textBox1.Text, FileMode.Open, FileAccess.Read);
            StreamReader sw1 = new StreamReader(fs1);
            textBox2.Text = sw1.ReadToEnd();
            sw1.Close();
            fs1.Close();

相关文章:

  • 2022-02-17
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-01
  • 2021-10-11
  • 2022-12-23
  • 2022-01-17
  • 2021-07-07
相关资源
相似解决方案