Hello everybody,
I'm a beginner in C. I want to read a file data.txt in C (this file contains 200 lines of integer).Here's a sample structure of file data.txt :
15 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1245 1246 1247 1249 10 1354 1358 1359 1363 1364 1365 1372 1373 1374 1375
9 360 433 438 440 441 723 724 726 729
The first number of each line is the number of following integers in that line.
I want to read line by line and use the integer to calculate after.
I've tried with strcpy to copy each line to a line of an array but it doesn't work when i want to call the element of array(i can only call the whole line .)