I would think the api of the class would answer this question. What did it say?

If all you want to do is append to a file why not just append a new line? No need to seek the end of a file just to...