S
Sam
Hi everyone
This some sort relates to a question that posted couple of day ago.
Basically I have a text file which consists of number of lines with the
following format. Each line is terminated by LF and each value is separated
by either a tab or number of spaces. The problem I have is that I have to
read each of the values into separate variables. For example, the first line
requires in 4 different variables to hold 4 values
1 0.000016 7.999882 0.000000
2 1.000013 7.999875 0.000000 0.005555
In a c console application, I use fscanf function to scan all the values of
a non-blank line till I hit a LF and ignore any control characters or empty
line. Could anyone tell me if we have some function like fscanf in .Net?
What's the best way to approach this problem. Any suggestions are greatly
appreciated.
Regards,
Sam
This some sort relates to a question that posted couple of day ago.
Basically I have a text file which consists of number of lines with the
following format. Each line is terminated by LF and each value is separated
by either a tab or number of spaces. The problem I have is that I have to
read each of the values into separate variables. For example, the first line
requires in 4 different variables to hold 4 values
1 0.000016 7.999882 0.000000
2 1.000013 7.999875 0.000000 0.005555
In a c console application, I use fscanf function to scan all the values of
a non-blank line till I hit a LF and ignore any control characters or empty
line. Could anyone tell me if we have some function like fscanf in .Net?
What's the best way to approach this problem. Any suggestions are greatly
appreciated.
Regards,
Sam