I wrote a parser for work that pulls data out of a .csv file. However, different versions of Excel create different types of .csv files. If I have 3 rows and 10 columns...
Excel 97:
, , , 345, 435, 231, 453
, , , 127, 432, 345, 876
Excel 07:
, , , 345, 435, 231, 453, , , ,
, , , , , , , , , ,
, , , 127, 432, 345, 876, , , ,
I need to make the file format like Excel 97 .csv before I start parsing. How could I remove the extra commas from the 07 .csv format? The number of rows and columns will be constantly changing.