If you are looking for a vbscript solution then you are on the wrong site because this forum is about kixtart and not vbs.

In kix this is simple. Just open the file, read one line, check the line, read the next line and close the file at the end. See below for an example.

 Code:
Break on

$rc = Open(1, "D:\somefile.txt", 2)

$line = ReadLine(1)

While @ERROR = 0
	If InStr($line, "wordtofind")
		$found = "yes"
	EndIf
	$line = ReadLine(1)
Loop

$rc = Close(1)

If $found = "yes"
	? "Found the requested word in one or more lines."
Else
	? "Did not find the requested word in one or more lines."
EndIf

Sleep 5
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.