Expect many of these threads from me until the end of the semester. :f3:
Basic premise of this assignment: Have two input files containing numbers, merge them into one output file with the numbers ordered, 8 values per line. Program needs to also print out the sum and amount of values of each separate file, as well as the combined file.
I got as far as having it list the sum and amount of values of the two input files. My problem right now is getting them to "merge." I'm doing this one step at a time, so I'm just getting them to merge right now.
First I tried to get one input file to print out its values on an output file on a separate project (thanks to @SaptaZapta for suggesting this) to see if I got the basic concept down. This worked fine.
So now I tried to apply this to the assignment... and it won't work. At one point, I tested this with just one file, and it worked. Then I tried with the second file alone, and the output file comes out blank. Tested with the first file again... and it comes out blank?!
http://pastebin.com/NDyR2dWx
I'm just not understanding what's going on here.
Note: I do delete the output file after every test run, so a new output file is always made whenever I test it.
Note 2: I figured that if I could get just one file to print into an output file, for both files, I could see if both will work at the same time by giving each their own separate num and success calls (num1 and success1 for the first file, num2 and success2 for the second), but I can't very well test that, now can I (I did try). ;_;