Sub DUE()
Dim strBuffer As String
Dim strContents() As String
Dim I As Long
ReDim strContents(0)
Erase strContents()
Close #1
Open "C:\TEST\28-06-2013.TXT" For Input As #1
strBuffer = Input(LOF(1), 1)
Close #1
strContents = Split(strBuffer, vbCrLf)
For I = LBound(strContents) To UBound(strContents)
'Debug.Print strContents(I)
Next I
End Sub
内存不足的问题!!!!
缓冲txt文件时。大约 256 mb 1.500.xxx 行。每条线的长度固定为 132。