Actually it's a little bit more complicated than this. The com.Ostermiller.util.ExcelCSVParser utility returns a Java array which is has a Vector type and not the coldfusion array type. Unfortunately (and something that I cannot explain) some lines that have empty fields are not pick up. I need something to dynamically resize the java array (the java array doesn't have a resize feature to force ) or cast it to a cf array type.
thanks Victor On Apr 4, 2005 10:36 AM, Kerry <[EMAIL PROTECTED]> wrote: > this will probably be because CF ignores empty list elements. > there might be some kind of a split function on cflib.org > > > -----Original Message----- > From: Victor Moore [mailto:[EMAIL PROTECTED] > Sent: 04 April 2005 15:14 > To: CF-Talk > Subject: CSV file and com.Ostermiller.util.ExcelCSVParser > > I am using com.Ostermiller.util.ExcelCSVParser with great succes to > parse csv files. There is only one small problem that I can't figure > out.If there are any empty columns in the file they are not picked up > and as a result the parsing process is failing. > > The work around is to open the file in excel and run a replace all > (for empty string with a space). Unfortunately this is used by end > users and for some reason they don't do it ... > > Is any way to do it programmatically? > > Thanks > Victor > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201417 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54