hello, this may help you...
$datafile="anyfile.txt";
$fp=fopen($datafile, "r");
$fr=fread($fp, filesize($datafile));
$lines=explode(chr(10), $fr);
in $lines you can find whole file, use ::while:: or ::for:: to cycle through all items..
XL