$str = file_get_contents('file.txt');

$exp = explode("\n", $str);

foreach($exp as $key => $value)
{
$exp2 = explode(',', $value);
echo $exp2[2]."<br>";
}

preg_match_all ile de yapabilirsin