new function AppendOutputFile() for appending to output files whereas with OpenOutputFile the contents is deleted.