I'm trying to convert from Perl to PHP. I have a script that reads in a CSV text file one line at a time. I can't seem to do it in PHP.
The read command want to read in the entire file, or just a few characters - it doesnt read line by line.
Is there an easy way to do this or do I have read in one character at a time until I get an End Of Line marker or something?
The read command want to read in the entire file, or just a few characters - it doesnt read line by line.
Is there an easy way to do this or do I have read in one character at a time until I get an End Of Line marker or something?