Solved

# read numbers from file and assign it to corresponding variables in c

Posted on 2007-03-19

I have a txt file with numbers such as...

4

10

3 23 1 39 48

9 3 92 9 12

etc

the first row represents something, the second number in row two represent something else.

the third row and corresponding number each have it's own functionality

here is what i need to do but can't figure out how in C

int a = (the number in first row, which is 4 in example);

int b = (the number in second row, 10 in example);

int[number of numbers in row 3] c = {in row three - first num, second num, third num...etc} = {3,23,1,39,48};

int[number of numbers in row 4] d = {......}

How can I do this?