Then you need to estalish a counter and increment it each time you execute the code which gets the timestamp.
so
dim FileCounter as Integer
at the beginning of the program
FileCounter = 0
then
FoundIt = False
FileCounter = FileCounter + 1
TimeStamp(FileCounter, 1) = ""
TimeStamp(FileCounter, 2) = ""
FileHandle = FreeFile
Open (fdir + fname) For Input As #FileHandle
TimeStamp(FileCounter , 1) = fdir + fname
This might be a good place to
multilist.additem (fdir + fname)
this will keep the multi list in sync with the array
FoundIt = EOF(FileHandle)
While FoundIt = False
Line Input #FileHandle, DataLine
Position = InStr(DataLine, "time= "

If Position > 0 Then
TimeStamp(FileCounter , 2) = Mid(DataLine, Position + 6)
FoundIt = True
Else
FoundIt = EOF(FileHandle)
End If
Wend
Close #FileHandle
Graph1(0).NumSets = multilist.ListCount
For i = 0 To multilist.ListCount - 1
Graph1(0).Legend(i + 1) = TimeStamp(i, 1) & NL & TimeStamp(i, 2)
next i