View Single Post
Old 11-09-2004, 05:28 AM   #2 (permalink)
kaeli69
Registered User
 
kaeli69's Avatar
 
Join Date: Apr 2003
Posts: 30
kaeli69 is an unknown quantity at this point
The code is in a loop, from what I can tell from that break statement.
You're opening and closing the file IN the loop. Which opens for writing, not appending. So with each loop iteration, it overwrites the file.

Open and close the file somewhere else and just write to it in the loop.

HTH
kaeli69 is offline   Reply With Quote