I need to display the first 10 records of a comma delimited file.
Currently, I loop through it #CHR(13)##CHR(10)# delimited.
Inside that loop ',' delimited.
I know coldfusion treats ',,' as one record, so I replace all ',,' with ', ,' as place-holders for blank records and that works fine.
The problem is when a field contains linebreaks ...
My loop is fooled at first sight of these buggers and thinks it's a new record.
How on earth am I supposed to differentiate the linebreaks?!
I never have trouble loading such files into MySql for instance, so I know there is something I have not thought of.
big time stumped
- Marc
Currently, I loop through it #CHR(13)##CHR(10)# delimited.
Inside that loop ',' delimited.
I know coldfusion treats ',,' as one record, so I replace all ',,' with ', ,' as place-holders for blank records and that works fine.
The problem is when a field contains linebreaks ...
My loop is fooled at first sight of these buggers and thinks it's a new record.
How on earth am I supposed to differentiate the linebreaks?!
I never have trouble loading such files into MySql for instance, so I know there is something I have not thought of.
big time stumped
- Marc