question: public void writeIOR ( String iorFile , org . omg . CORBA . Object iorObj ) throws IOException { if ( iorFile != null ) { ORB orb = initORB ( null ) ; java . io . FileWriter outFile = new java . io . FileWriter ( iorFile ) ; java . io . PrintWriter writer = new java . io . PrintWriter ( outFile ) ; String ior = orb . object_to_string ( iorObj ) ; writer . println ( ior ) ; writer . close ( ) ; if ( Debug . debugging ( "corba" ) ) { Debug . output ( orb . object_to_string ( iorObj ) ) ; } } }
target:  Write the IOR for a object to a file.