import java.io.*; public class DispEven { public static void main (String args[]) { try { FileInputStream file = new FileInputStream("Even.dat"); DataInputStream data = new DataInputStream(file); try { while (true) { int in = data.readInt(); System.out.print(in+" "); } } catch (IOException eof) { data.close(); } } catch(IOException e) { System.out.println("Error"); } } }
Our aim is to provide information to the knowledge seekers.