Well, how I do it is by using Text Streams. The only problem with them is that it is that you need to read the file into a variable by using FileSystemObjects. If you have a large file, I would recommend using a few variables. To start, access your references from the Project menu and look for "MS Scripting Runtime". The generic code goes a little something like this:
To Read the first line into memory:
Option Base 1
Dim mFSO as New FileSystemObject, mFile as File
Dim mTS as TextStream, arData(# of lines in file) as string
Private Sub Form_Load()
Dim s as String, i as Integer
Set mFile = mFSO.GetFile([path & filename])
Set mTS = mFile.OpenAsTextStream(For Reading)
s= mTS.ReadLine
for i = lbound(arData) to ubound(arData)
arData(i) = s
s = mTS.ReadLine
Next i
TS.Close
End Sub
Now you have the file in arData to do with what you want.
To edit the first line just modify the contains of arData(1) and life is good. Make sure you dont forget Option Base 1 in the declarations. [sig]<p>Halo<br><a href=mailto:Halo333@juno.com>Halo333@juno.com</a><br>[/sig]