Spartan_117 wrote:
I believe the reason it does that is becuase once u write to the file u arent closing the file (or the IO stream) if u close it it should work.. But its been a while so im not a hundred percent
Nope. The reason it's truncating the file is that you have to add the boolean append argument set to true for it to add to the file instead of truncate/write a new one.
Although, if he doesn't close (or flush, or checkError()) the stream, he won't get any data written at all.