Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty line at the end of the file #30

Open
loter opened this issue Aug 16, 2015 · 1 comment
Open

Empty line at the end of the file #30

loter opened this issue Aug 16, 2015 · 1 comment

Comments

@loter
Copy link

loter commented Aug 16, 2015

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?

@jorgecolonconsulting
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants