Quote:

readfile() UDF
FilterArray() UDF

$file=readfile("inv.txt")
$filtered=filterarray($file,' B ')
for each $item in $filtered
? $item
next




This will return lines with "B" in fields other than field 2, which may or may not be an issue depending on the data.