Ok, well my guess is that it isnt that the text file goes blank, but rather that the exception is thrown prior to completing the writing or the closing. Without code to see, I wont really know what...