从文件读取文本 (beginner)
TextBox1是指一个TextBox控件
Dim sr As StreamReader = File.OpenText("c: ile.txt")
Dim fileContents As String = sr.ReadToEnd()
Me.TextBox1.Text = fileContents
sr.Close()
Dim fileContents As String = sr.ReadToEnd()
Me.TextBox1.Text = fileContents
sr.Close()