Dim s As String
Open "d:\a.txt" For Binary As #1 '此处要用 Binary
s = Input$(LOF(1), 1)
Close
Text1 = s
或者:
Dim s$, ss$
ss = ""
Open "d:\a.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, s
ss = ss & s & vbCrLf
Loop
Close
Text1 = ss
[此贴子已经被作者于2007-10-13 18:14:07编辑过]