If your csv file for example looks like this.

 Quote:

11;22;33;AA;44;55
22;XX;33;BB;ZZ;00


You could do something like this.
The AA in the first line will be replaced by BB. The other lines stays as it is.
There also I a replace UDF (two in fact) one of them does exactly the same as the join split line below.

 Code:
Break on

$rc = Open (1, "c:\test.csv", 2)
$rc = Open (2, "c:\test2.csv", 5)

$line = ReadLine (1)
While @ERROR = 0
	If InStr($line, "AA")
		$line = Join(Split($line,"AA"),"BB")
		$rc = WriteLine (2, $line + @CRLF)
	Else
		$rc = WriteLine (2, $line + @CRLF)
	EndIf
	$line = ReadLine (1)
Loop

$rc = Close (1)
$rc = Close (2)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.