C++
bool writeBOM();
Description
Call this method to write the byte order mark (BOM) to the beginning of the output file associated with this object, based on the current file type.
The file pointer will be positioned after the BOM.
Returns true if the BOM is successfully written, or false otherwise. It returns false if the BOM does not get written to the file because of error conditions during the call.