open c:\text1.txt for input as #1
do until eof(1)
line input #1,strline
strcols = split(strline, vbTab)
for i = 0 to ubound(strcols)
debug.print strcols(i),
next i
debug.print ""
loop
close #1
Dim fsoTest As New FileSystemObject, file1 As File, ts As TextStream, s As String
Set file1 = fsoTest.GetFile(“C:\testfile.txt")
Set ts = file1.OpenAsTextStream(ForReading)
'读取一行
s = ts.ReadLine
MsgBox s
ts.Close