Jump to content

Dynamic naming variables in a loop


Recommended Posts

I believe an explanation is in order here.

Some time ago I tested a few csv parsing functions (written in AutoIt) using the above example from wiki (as a benchmark). None of the algorithms returned the expected results. I then made the assumption that fields with embedded line breaks had been overlooked (my mistake). ProgAndy's code was just one of several algorithms that I tested, but I didn't really understand his code at the time.

For a while I thought my version was the only one that catered for embedded line breaks, until FichteFoll posted his version, which I thought was in some ways superior to mine..I did mention the enclosed line break issue at some point, but deleted my comments since I got no responce and I was uncomfortable criticising other people's code (I didn't mention anything about ProgAndy's version BTW).

In addition to the above, I don't believe that trailing line breaks are obligatory in csv format and I don't really see any advantage to including them. Perhaps someone can provide an explanation as to why they are sometimes included.

Edited by czardas
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...