Different file modes for doc file output.