cosfreelance
MIS
Hi All,
i have CSV files being created from a system. these files are stored in a folder on the network. What i am trying to do is pick up each CSV file and convert it to a text. The problem is some of the field values contain commas, and the complete field is enclosed in quotes. if i replace the quotes the comma contained in the field splits the existing field into two. and this causes a problem when printing
eg :
"No.20, My Address1",My Address 2,My Address 3,,,,
"Dear Sir,",,,,,,
i am trying to remove the quotes and any commas that are contained within the quotes, leaving the trailing commas intact.
how do i do this? your advice is appreciated.
regards
i have CSV files being created from a system. these files are stored in a folder on the network. What i am trying to do is pick up each CSV file and convert it to a text. The problem is some of the field values contain commas, and the complete field is enclosed in quotes. if i replace the quotes the comma contained in the field splits the existing field into two. and this causes a problem when printing
eg :
"No.20, My Address1",My Address 2,My Address 3,,,,
"Dear Sir,",,,,,,
i am trying to remove the quotes and any commas that are contained within the quotes, leaving the trailing commas intact.
how do i do this? your advice is appreciated.
regards