Reading a .csv file
I have just resd the chapter on file operations, hoping to find some magic way of reading fields from a .csv file into an array.
Unless I missed something, the best I can do is read then entire line up to the LF character. Then I'm left to parse the line, looking for commas and quotes, separating it into fields the old-fashioned way.
Is there some magic I missed that would make this job easier?
Thanks!
|