Umm, didn't the prof or book give you a clue? :eek:
file() will read an entire file into a string.
$csv="myfile.txt";
$fp=fopen($csv, 'r');
if ($fp) {
$data=file($csv);
$data is now an array with the entire csv file in it.
To break this up, use explode().
$lines=explode("\n", $data);
$lines is now an array; $lines[0] is the data on the 1st line of the file....
HTH,