July 18th, 2013, 09:58 AM
Exporting some data as CSV?
At the moment I have two values in my application which I need to export - fileSize and filePath. I'm using a Dictionary<int, string> to store the values, where the path is determined by the size.
Now I'm supposed to extract this data as a CSV file, with size and path being the two columns. Any ideas on how could I do that ? (Never worked with csv output, on in fact any file output in C# before)
July 18th, 2013, 10:26 AM
It's simply a text file whose fields are separated by a delimiter like a comma or tab. Hence the name, "Comma-Separated Values".
From Wikipedia, CSV:
You might want to read the rest of that article and perhaps also RFC 4180 for more information and examples. Please note the use of and reasons for quotation marks for string fields.
Originally Posted by Wikipedia
When you get an assignment that uses terminology that you are not familiar with, you should look it up. Anymore, STFW ("Search The Web!") is replacing RTFM ("Read The Manual!").
Last edited by dwise1_aol; July 18th, 2013 at 11:32 AM.