'1.每次读取一行 Private Sub Command1_Click() Dim InputData As String Text1.Text = "" Open "c:\abc.txt" For Input As #1 Do While Not EOF(1) ' 循环至文件尾。 Line Input #1, InputData Text1.Text = Text1.Text & InputData Loop Close End Sub '2. 一次就读取全部内容,二进制方式 Private Sub Command1_Click() Text1.Text = "" Open "c:\abc.txt" For Binary Access Read As #1 ReDim btes(LOF(1) - 1) As Byte Get #1, , btes Close Text1.Text = StrConv(btes, vbUnicode) End Sub