@Richard: if " b " has a delimiter (spaces around it) then that may not be the case

@Jazz
use the optional parameter for filterarray... $filtered=filterarray($file,' B ',1)

Sorry about that
_________________________
How to ask questions the smart way <-----------> Before you ask