tags:

views:

48

answers:

1

I'm 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.

A: 

My guess is that it's a file ending issue. Check that your file has LF line endings, or check the parameters of fgetcsv to see if it supports Windows style file endings (if that is what your file is using).

pocketfullofcheese