Can someone help me please!
I would like to know of any advice about reading data from a file, and then storing them in arrays. I have got to work with this set of data, which needed to be preprocessed first in the following way: The first set of ten data in the file would be stored in the first row an array, and the 11th data in the same file would be stored in another the first row of another array. I will post some of these data below to give you a vivid picture of what I am trying to explain:
0.40627
0.41822
0.45128
0.50714
0.58098
0.66238
0.74061
0.80856
0.86324
0.90431
0.93279
0.95022
0.95826
0.9586
:
:
Each row of the first array (lets name it an input array) would have ten columns containing the first ten data in the file, i.e. 0.40627, 0.41822, 0.45128, ..., 0.90431. Then the next data in the file, i.e. 0.93279, would be stored in another array(having only one column, let us name it an output array). The next data, i.e.,0.95022 would then be stored in the second row of the output array. The second row of the input array would contain 10 data starting from 0.41822 to 0.93279. Then the next data in the file, i.e. 0.95826 would be stored in the 3rd row ow the output array, and the data from 0.95022 to 0.45128 would be stored in the third row of the input array. This sequence would continue like this until the whole data in the file are read and stored in the corresponding arrays.
I would be very grateful if any one could give me an idea on how to go about this problem. Thanks