You don't say where you're doing this (server/client browser/WSH?), so
it's difficult to know what might be the best way.
Simplest would be to read in the whole file using the FSO and split
into an array based on the line separator, then iterate through that
array splitting each line into its constituent fields. Watch out for
quoted fields where the value contains a comma. If the line has no
quotes then you can just split on comma, otherwise a regexp or
character-by-character iteration might do it.
You might also try using the "text" ADO driver and just do a "select
all" on the file.
Tim.
"Jeff Thies" <no****@nospam.net> wrote in message
news:mI****************@newsread3.news.atl.earthli nk.net...
I'd like to to read a CSV file with javascript. (put into an array
of arrays). (The CSV file would be imported from a input type="file")
I'm not sure how to go about this. Hairy regex or some functions
based on iterating through every character?
Anyone done this in javascript? Hints?
Jeff