I've used this for files that number in the 1,000 of lines
Hello Jethro,
Here is a little snipit of code that I use for reading comma delimited files:
Public Sub LoadData()
Dim I As Integer, iFileNum As Integer
Dim sFileName As String
' MyData is a UDT
sFileName = App.Path & "\data.dat" ' set the file name up
iFileNum = FreeFile ' get a free file number
Open sFileName For Input As iFileNum ' Open the file.
Do While Not EOF(iFileNum) ' Loop until end of file.
Input #iFileNum, MyData(I).sName, MyData(I).sStreet, MyData(I).sCity, MyData(I).sZip ' read in the data from line each line in the file
I = I + 1 ' increment my place holder
ReDim Preserve MyData(I)
Loop
' check and remove the last blank element
If MyData(UBound(MyData)).sName = "" Then
ReDim Preserve MyData(UBound(MyData) - 1)
End If
Close iFileNum ' close the file
End Sub
Hope this helps a little.
Roger