Hi,
I’ve Seen some posts regarding this before with no definite answer (as far as I can see).
I receive a CSV file which needs to be imported automatically on a daily basis.
I was trying to use:-
Input #fileNumber , variableList
to get the data and then create/update my documents but there is a problem. When I look at the variables, it seems to assume that if there is a space, that should be a new variable. This is throwing out my import routine completely. I always thought this used the comma separator (obviously not).
I would use Line Input and then parse the line at each comma but , I do have some address fileds which have commas in (which are surrounded by quotes) . I am assuming that the only way I can do this properly is to have each value surrounded by quote.
So, the question is, can i do this in script with the file as it is? I am trying to get the sender of the file to include quotes around each field but I think they do it in excel which only seems to add them if there is a comma in the field (is that correct?). can that be changed in excel?
Thanks in advance