Have a script which imports a CSV .txt file into a table via a TransferText method and an import spec. The file it always in the same format, same number of fields.
However, sometimes a row will contain an excess comma in the name field. This causes the rows to go out of synch when the table is created. I don't want this.
Is there a way to parse the txt file before import, count the number of commas on each row, and if it's not the expected results, to stop and warn the user?
Cheers.
However, sometimes a row will contain an excess comma in the name field. This causes the rows to go out of synch when the table is created. I don't want this.
Is there a way to parse the txt file before import, count the number of commas on each row, and if it's not the expected results, to stop and warn the user?
Cheers.