OpenWrite["file"] opens a file to write output to it, and returns an OutputStream object.
OpenWrite deletes any existing contents in a file, and prepares to write output starting at the beginning of the file.
For output to pipes, OpenWrite and OpenAppend are equivalent.
See notes for OpenAppend.
See The Mathematica Book: Section 2.11.3.