I have a text file that i would like to use PHP to read from. each line
ends with a \n. i need to read from the beginning of the line, only upto
that \n
right now i'm using this, which is sloppy and slow:
if ($chr = fgetc($file)) != "\n") { }
which of course reads in one byte at a time till the end of line. is there
a better way?
--
lucas
-------------------------
Perl Coder since 2001
shift || die;
-------------------------