Matt H
2010-02-27 11:52:45 UTC
So im working with a ".txt" file input in C programming. I am a beginner. My txt file has a bunch of integers which looks some thing like:
3
5 4 6 5 3 4 5 6
3 5 6 7 8 9 4 3
2 5 6 7 8 8 8 3
Does anybody know the program code how to add up each line of numbers separately? (not including the single 3 on line 1).
NOTE: once I have the code for how to add up the values from each line, I will be able to 'printf' it into my program and go on from there.
Thank You.
Matt H.