// create and open a character archive for output std::ofstream ofs("filename.txt"); // create class instance TreeView *tree = new TreeView(); // save data to archive { boost::archive::text_oarchive oa(ofs); // write class instance to archive oa << tree; // archive and stream closed when destructors are called }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)