Monday, May 24, 2010

How do you create a comma delimited file in C#?

I've found that comma delimited files are very useful in C++, but I'm now working in C# and have no idea how to open and write to a .csv file in this language.





Help!





Specific examples would be appreciated. I'm working in Microsoft Visual Studio 2005.

How do you create a comma delimited file in C#?
Here's basif File IO:


http://support.microsoft.com/default.asp...





You can always split the string you read in on the comma delimeter into an array:





string[] lineItems = fileLine.split(',');


No comments:

Post a Comment