February 5th, 2009
Using String.Split and String.Join to build a simple CSV reader and writer in C# - 0

Whole programming languages have been designed (*cough* perl) so that we can cut delimited strings into bits and string them back together. For this purpose C# provides the String.Split() and String.Join() functions. You specify how you would like to split or merge the string and they do the work. In this post we look at some common example uses and then put together a simple CSV (comma separated values) parser.



Except where otherwise noted, content on this site is