Originally Posted by aznd000d
ok, I just tried the suggestion of opening both output files b4 the main while-loop, but that doesn't work.
I did indent and put brackets in my code.....does it not show correctly in the 1st post?
btw, can I uhhhhhhhhhh see the code after you uhhhhhhhhh fixed it???

h:
works for me (both ways i mentioned), so you're probably doing something wrong. make sure you aren't still closing or opening any file descriptors inside of the while loop, make sure you close both of them at the end of the program, and make sure you're using two separate file descriptors and using each one in the right place.
it's a really easy fix, so maybe in the morning if you haven't gotten it i'll give you the code. but i'm going to sleep now. good luck
the way you have things indented (at least the way it appears on this page) is pretty confusing. i can see how you're doing it for the most part, but it's not consistent throughout the code.