Hello ,i have a numeric txt file like the following one:
2 3 4
5 6 7
8 9 0.
The problem is that i want to read each column and store it in an integer array in this way : array_column={(2,5,8),(3,6,9),(4,7,0)}. I know how i can read line by line but i don't want to use an extra array in order to do it indirectly in order to fix array_column.
You can read a file only sequentially unless you know the exact position of the character you are going to read.
Anyway, you don't need an extra array, you can fill it with the values you read by line putting them in the right position within the array