Change file operations to append mode