Share

AcFILE::readBOM

C++

bool readBOM();

Description

Call this method to read any existing byte order mark (BOM) from the beginning of the file associated with the AcFILE object, and update the current file type.

Places an input file pointer after the BOM. The file must be opened with read permissions for this call to be successful. If a file type is previously set and the BOM is not found in the file, the file type is left unchanged.

Returns true if the BOM is successfully read and the file type is set. It returns false if the BOM does not exist for the file or if there was an error during the call.

Links

AcFILE

Was this information helpful?