easy-csv icon indicating copy to clipboard operation
easy-csv copied to clipboard

Empty line at the end of the file

Open loter opened this issue 10 years ago • 1 comments

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?

loter avatar Aug 16 '15 17:08 loter

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.

jorgecolonconsulting avatar Aug 16 '15 19:08 jorgecolonconsulting