[Mono-list] Variable number of Lists depending on a CSV file

Paul F. Johnson paul at all-the-johnsons.co.uk
Sun Oct 9 12:21:57 EDT 2011


Is there a simple way to do this?

What I'd like to do is read in a CSV file with each column being stored
in it's own list. This is simple enough if I restrict the file to have a
static number of column - I could have something like

List <double> col1 = new List<double>();
List <double> col2 = new List<double>();

and so on.

However, what I'd like to do is have a dynamic number of List objects
depending on the number of columns.

Is this possible?


Vertraue mir, ich weiss, was ich mache...

More information about the Mono-list mailing list