I have a file (file.txt) that I read with PHP.
That's how it looks right now:
<?php
$file = fopen("document/test.txt", "r");
if ($file === FALSE) {
die("Nothing found.");
}
$sum = 0;
while (($data = fgetcsv($file, 0, "\t")) !== FALSE) {
$sum += (double) $data[11];
}
fclose($file);
echo "Total: " . $sum;
?>