fgetcsv wont parse file without blank line at end of file

Posted by Patrick on Stack Overflow See other posts from Stack Overflow or by Patrick
Published on 2010-04-10T19:00:27Z Indexed on 2010/04/10 19:03 UTC
Read the original article Hit count: 438

Filed under:
|

Im working on a script to run through a CSV file (see previous post)

I ran into a weird thing, where if my actual CSV file itself has a blank line at the end of it, it will open and parse just fine, but if it doesn't, if the end of the file ends at the end of the last line, it just shows up blank.

© Stack Overflow or respective owner

Related posts about php

Related posts about fgetcsv