Object Exporting (Cont.) We will use a file stream to write the IOR into a file. ofstream f("HelloWorld.ior"); if (f.good()) { f << hello_world_ior.in() << flush; } else { cerr << "Failed opening output file 'HelloWorld.ior'" << endl; return -1; }