added an append to file streamthat appends and printfs to a file