Line Input #FileNum, sLine
This tells VB to put the whole line from the file into a string variable called sLine

lPos = InStr(sLine, sFind)
This returns the character position of sFind in sLine. It returns zero if it's not present. We know where the text we want is in relation to lPos, so once we've got it we can extract the text using the Mid Function.

Don't forget to mark this thread resolved if your question has been answered