Reset the internal file offset for output before writing