try { FileOutputStream rsnamefos; // declare a file output object rsnamefos = new FileOutputStream("rsnamefos.tmp"); } catch (IOException e) { system.err.println("FileNotFoundException"); }