access to the data column and row

Oct 27, 2010 at 8:03 AM
Edited Oct 27, 2010 at 11:12 AM

Hello.

I need a little help.

I have a CSV file
example ...
1, 2; b
2; a; 1
3; Hello WORLD 4

C#
The project has 3 texbox

As my first form (texbox) put the words "Hello World" and at 2, 3, put "a" and "b"

Sorry for such a stupid question, and for my English (English is not my native language)

Thanks in advance!

 

hoh i get it

 

  

            using (CsvReader reader = new CsvReader(@"\test.csv"))
            {
                reader.ValueSeparator = ';';
                //reader.ReadHeaderRecord();
                DataRecord record = null;

                record = reader.ReadDataRecord();
                textBox3.Text = record[2];
                record = reader.ReadDataRecord();
                textBox2.Text = record[1];
                record = reader.ReadDataRecord();
                textBox1.Text = record[1];
            }