Microsoft Visual J++. Java


- 2


 

//

OutStream.flush();

 

//

OutStream.close();

}

catch(Exception ioe)

{

System.out.println(ioe.toString());

}

//

try

{

//

InStream = new DataInputStream(

new BufferedInputStream(

new FileInputStream("output.txt")));

 

//

//

System.out.println(InStream.readLine());

 

//

InStream.close();

}

catch(Exception ioe)

{

System.out.println(ioe.toString());

}

 

// ,

//

try

{

System.out.println(

"Press <Enter> to terminate application...");

 

System.in.read(bKbdInput);

}

catch(Exception ioe)

{

System.out.println(ioe.toString());

}

}

}