easy-csv
easy-csv copied to clipboard
Empty line at the end of the file
Hello,
For some reason it saves an empty line at the end of the document (for example if I write 5 records, there are 6 lines), how to fix it?
Hi @loter,
A blank line at the end of the file is recommended. Have a look at http://stackoverflow.com/questions/2287967/why-is-it-recommended-to-have-empty-line-in-the-end-of-file. By default fputcsv() adds that line.
If you need to remove the blank line you'll have to write code outside of easy-csv to modify the file.