update how file is written. Append instead of overwrite.

Signed-off-by: edge226 <lucid@celps.org>