I have a text file with 100 rows and 512 columns, each column is separated by a tab:
row1 00 00 20 00 11 00 00 00 00 10
00 11 00 55 77 00 00 70 21 00
90 ...
I would like to read through each row and store value in each column in an array.
I dont want to use sscanf and separate the variables, as it requires creating another 500 variables.
If I use fgets, I can get the whole line, but how do I separate columns with spaces and store them in an array?
Thanks.