Indicates how the library should open the output file when using Input/Output Files Transport. Note that after opening the output file the library continues writing to the end of the file, whatever it is after performing any side effect actions described in the table below.
Symbol | Value | Description |
---|---|---|
CreateNew | 1 | Create a new file. If output file already exists, the call will fail. |
CreateAlways | 2 | Always create a new file. If output file already exists, it will be overwritten. |
OpenExisting | 3 | Opens an existing file. If output file does not exist, the call will fail. |
OpenAlways | 4 | Always open a file. If output file does not exist, it is created. |
TruncateExisting | 5 | Opens an existing file. If output file does not exist, the call will fail. If the output file exists and has non-zero length, all file's contents is deleted. |