Hi Eric M.
I believe that this code does what you are looking for.
Code:
Option Explicit
Private Sub Command1_Click()
Dim stFiles() As String
Dim iCounter As Integer
'Read the current file into an array
Open "C:\YourTextFile.txt" For Input As #1
Do Until EOF(1)
ReDim Preserve stFiles(iCounter)
Input #1, stFiles(iCounter)
iCounter = iCounter + 1
Loop
Close #1
'Put the new file name at the top of the text file
Open "C:\YourTextFile.txt" For Output As #1
Write #1, "New File Name"
For iCounter = 0 To UBound(stFiles)
Write #1, stFiles(iCounter)
Next iCounter
Close #1
End Sub
All the best.
------------------
OneSource
The truth may be out there, but it's in here too!
.
[This message has been edited by OneSource (edited 01-29-2000).]