I'm back again with another question about this text file I've been working with (see: Illegal Operation in ColdFusion Extension). The problem I have now, of course, is the occasional occurrance of commas inside the data fields. The file that I will be using when this is put into use will not have quotes as text qualifiers like I had at first believed. I have no power over what format the file is sent in except that it will be in either comma-delimited format, separated by tabs or fixed-length. The problem with fixed-length is that I don't know how to specify the lengths of the fields in my code (can this be done?). The problem with comma-delimited is the occasional comma within a field, and, though I haven't tried it, the problem with separated by tabs will be the same as fixed-length. What I have been looking for is a way for ColdFusion to count the number of comma's in a line of text and if there are too many, delete a certain comma from the line. Is there a way to do this?
Thank you for your help.
mkyzar
Thank you for your help.
mkyzar