Serial Framework C++ Edition

◆ CwclFileStream()

CwclFileStream ( const tstring FileName,
const unsigned long  CreationDisposition,
const unsigned long  DesiredAccess,
const unsigned long  ShareMode 
)

Creates new file stream object.

Parameters
FileNameThe file name.
CreationDispositionAn action to take on a file or device that exists or does not exist.
DesiredAccessThe requested access to the file or device, which can be summarized as read, write, both or neither zero).
ShareModeThe requested sharing mode of the file or device, which can be read, write, both, delete, all of these, or none (refer to the following table). Access requests to attributes or extended attributes are not affected by this flag.

If the open or create file failed the wclEFileOpenFailed exception raises.

Exceptions
wclEFileOpenFailed