这个我刚做过:我也是和你一样,最后看帮助看到的:System.IO.StreamReader st;//从.txt中读文件st=new System.IO.StreamReader(openFileDialog1.FileName,System.Text.Encoding.Default );//将读出来的文本赋给文本框richTextBox1.Text=st.ReadToEnd();//关闭对象st.Close (); 相关文章: