c++ - Create a file with a custom extension using boost serialization -


i know if possible serialize object using boost serialization file custom extension. instead of .xml, create custom extension, example .hst , associate custom icon file. format of file can stay same, make more professional not generating .xml files

according tutorial property tree, should able parse file regardless of actual file extension.

http://www.boost.org/doc/libs/1_42_0/doc/html/boost_propertytree/tutorial.html

as sure aware, file extension merely indicator of file is, , not affect content of file. advised earlier, careful of deviating pre-existing file extension standards may cause issues on end-user's system. without great need, highly recommend refrain deviating on standards. if must use custom extensions, sure , see if proposed extension used else. checkout sites such as:

http://filext.com/

http://fileinfo.com/

and other such databases.


Comments