Virtual Serial Port Tools - Advanced serial port configurations for your custom ports usage scenario
Download Virtual Serial Port Tools Hide this button

FileCreationMode Enumeration

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.

SymbolValueDescription
CreateNew1Create a new file. If output file already exists, the call will fail.
CreateAlways2Always create a new file. If output file already exists, it will be overwritten.
OpenExisting3Opens an existing file. If output file does not exist, the call will fail.
OpenAlways4Always open a file. If output file does not exist, it is created.
TruncateExisting5Opens 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.