Yes you need to surround the code and /code tag with square brackets.

I modified your code a bit and made it use kix commands and function. FSO might work great but this should also. You might want to add + @crlf at the end of the line it writes to the log file.

 Code:
Break on

$searchword = "C-205"
$logfile = "\\server\share\comphardware.csv"

$rc = Open(1, $logfile, 5)
$line = ReadLine (1)

While @ERROR = 0
	If NOT InStr($line,$SearchWord)
		$rc = WriteLine(5,$LogText + $Return)
	EndIf
	$line = ReadLine (1)
Loop

$rc = Close (1)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.