S
skywalker skywalker
Hi,
I have a concern on how to get around with reading the CSV file that
some of the fields having comma.
When I open up the csv file in notepad, i can see that it will be auto-
wrapped by double quote
for example:
Sandy,"123 Kent St 5,",New York
there is comma value in "123 Kent St 5,"
My asp code is currently using:
arrUpload = split(trim(objTextFileGet.readline),",",-1,1)
and it will read following
arrUpload(0) = Sandy
arrUpload(1) = "123 Kent St 5
arrUpload(2) = "
arrUpload(3) = New York
where in fact, I would like it to read:
arrUpload(0) = Sandy
arrUpload(1) = 123 Kent St 5,
arrUpload(2) = New York
How can I change the split function or any better idea?
Thanks a lot.
Regards,
Sky
I have a concern on how to get around with reading the CSV file that
some of the fields having comma.
When I open up the csv file in notepad, i can see that it will be auto-
wrapped by double quote
for example:
Sandy,"123 Kent St 5,",New York
there is comma value in "123 Kent St 5,"
My asp code is currently using:
arrUpload = split(trim(objTextFileGet.readline),",",-1,1)
and it will read following
arrUpload(0) = Sandy
arrUpload(1) = "123 Kent St 5
arrUpload(2) = "
arrUpload(3) = New York
where in fact, I would like it to read:
arrUpload(0) = Sandy
arrUpload(1) = 123 Kent St 5,
arrUpload(2) = New York
How can I change the split function or any better idea?
Thanks a lot.
Regards,
Sky