Getting The Object's IOR // Read the file in which the server stored the IOR, // and get the IOR. char ior[1024]; ifstream f(ior_input_file); if (f.good()) { f >> ior; if (!ior[0]) { cerr << "Unable to read ior" << endl; return -1; } } else { cerr << "Cannot open input file for reading IOR: '" << ior_input_file << "'" << endl; return -1; }