Use the file mode "a" for appending when you create the file stream.