yamid

yamid

  • NA
  • 98
  • 0

read a simple column- based data from a text file to an array in C#

Jan 29 2010 1:13 PM

Hi,
I have a text file organized like this:

X   Y
1   2
3   8
6.66666   7.666  
....   ......
.... ......

I want the program to read the first column and put in X[] array and Y column to Y[] array

The data are of double type  and  Tab or space delimited. they could contain some free spaces in the begining of each line or at the end of each line

Thanks


Answers (1)