A source file is written in CSV format, as a VB file.
The problem is that they didn't "trim" the strings before putting them in quotes, which means the average record length is over 3,000, when it should be about 200.
e.g.
123,"ABC ",45.67,"DEF ",45,"GHI ",999
123,"ABC ",7689.99,"DEF ",234,"GHI ",999
Therefore there is a lot of wasted space in the file. The numeric values can be different lengths, which means not all fields are lined up.
What's the best way of stripping out the spaces from within the quotes?