当前位置: 代码迷 >> 综合 >> 打开保存文件本文件txt,注意编码
  详细解决方案

打开保存文件本文件txt,注意编码

热度:87   发布时间:2024-01-16 09:14:15.0

1.打开
   StreamReader  m_streamReader  =  new  StreamReader  (  fs,System.Text.Encoding.Default  )  ; 

2.保存
   this.richTextBox1.SaveFile("file.txt",RichTextBoxStreamType.TextTextOleObjs);

  相关解决方案