I am wondering if there is an easy way to read in structured text datafiles and assign to an array element each value read
in. This is something very simple in Fortran or C, but so far it's been eluding me in .net. What I am doing now is that I read in a file and read line by line and split each line up into fixed lengths, each substring containing an element (number) that I save in an array. However, when the spacing between the numbers in the text file changes, it is truncating the numbers. This is what I am doing now:
Line = objReader.ReadLine()
Node_1
Node_2
Node_3
This is an example of an ASCII data file that I am interested in reading (much longer than this):
929 930 927 928 925 926 923 924 921 922
919 920 917 918 915 916 913 914 911 912
909 910 907 908 905 906 889 890 891 892
Thanks!
Valerio