I have a question on how to read a file with scientific notation into 2D array.
Let's say I have a file with a name "test.txt" and its contents:
1.0e-5 0 0.644e-21
3.0 14 253.0e10
Each number is separated by spaces. Could you tell me how I could load the numbers into 2D array?
It would be greatly appreciate if you would make a sample code.
Read line in file, count spaces, strtok(...), allocate memory for array, load using loop.