Ignore entirely empty lines at the end of files

Closes #141
This commit is contained in:
Fonata
2018-04-29 11:08:40 +02:00
parent e1ecf9302e
commit b82ad03bd5
3 changed files with 43 additions and 3 deletions

View File

@@ -1170,7 +1170,7 @@ class Csv {
$data = fread($fh, filesize($file));
fclose($fh);
return $data;
return rtrim($data, "\r\n");
}
return false;