
If Not IO.File.Exists("c:\123.txt") Then
IO.File.CreateText("c:\123.txt")
Else
IO.File.WriteAllText("c:\123.txt", TextBox1.Text)
End If
End Sub
StreamReader sr = new StreamReader(txtPath.Text, Encoding.GetEncoding("GB2312"))string line
string strShow = ""
while ((line = sr.ReadLine()) != null)
{
strShow = strShow + line + "\n"
}
rtxtRead.Text = strShow
sr.Close()
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)