1
Answer

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

yamid

yamid

14y
2.7k
1

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)