> From: Denis Brown > > > As to why your fclose doesn't behave... anyone??? Corrupted library > maybe? > My guess is fptr = fopen ("myfile.txt", "wa+"); is nuking the file then appending each time through the loop. Carl