Tag Archives: read file

Write a CSV file from an array in C#

The example Read a CSV file into an array in C# shows how to load a CSV file into a two-dimensional array of strings. This example does the opposite: it saves a two-dimensional array of strings into a CSV (comma-separated … Continue reading

Posted in database, files, strings | Tagged , , , , , , , , , , , , , , | Leave a comment

Read a CSV file into an array in C#

The following LoadCsv method reads the CSV file into a two-dimensional array of strings. // Load a CSV file into an array of rows and columns. // Assume there may be blank lines but every line has // the same … Continue reading

Posted in files, strings | Tagged , , , , , , , , , , , | 148 Comments