I am making a .CSV parser for my dad, because he is recieving an almost unreadable file from a place he buys wares at.
See, my problems are like this:
- The shop have been so kind to make the seperators "," and still using it to seperate decimal values.
- Everything is enclosed in "quotation marks", and i would love to know how to remove them
Until now i have been using StreamReader to read my file, and to show it i am using a DataGridView. My code are as this: http://dumptext.com/E9GcAfyW
EDIT: The problems are as this: When i try to parse the file with my current code, i get an error saying the array are too long for the specified columns, and thus crashing. That is because the .CSV file are using "," as the seperator, and still using the comma as a seperator for decimal values (e.g. 25,3). The other problem is because when i parse a chunk of the file, it works well, but all the elements are enclosed in quotation marks, which i would love to remove from the DataGridView. This is my window when i remove the extra comma so the parser works: http://puu.sh/fbXlt/35aaf37e33.png