<?php
// get file data and loop over it (each new line is a delimiter)
$data = explode("\n", file_get_contents('file_location'));
// itterate over data
foreach($data as $l) {
	// pre-process data (optional)
	$t = explode(',', $l);
	// do something with data
	echo $t[0]; 
	echo $t[1];
}
?>