your piping to a temp file can be handled nicely with:

my version of ReadFile(): http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000321

and collecting the data from it with: FilterArray(): http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000453
_________________________
How to ask questions the smart way <-----------> Before you ask