FileDocCategorySizeDatePackage
LeDoubleReader.javaAPI DocExample926Sun Mar 28 19:06:42 BST 1999None

LeDoubleReader

public class LeDoubleReader extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

  
    for (int i = 0; i < args.length; i++) {
      
      try {
        FileInputStream fin = new FileInputStream(args[i]);
        // now that we know the file exists, print its name
        System.out.println("-----------" + args[i] + "-----------");
        LittleEndianInputStream din = new LittleEndianInputStream(fin);
	int fr = 0;
        while (true) {
          double theNumber = din.readDouble();
          System.out.println(++fr + "\t" + theNumber);               
        }  // end while        
      } // end try
      catch (EOFException e) {
        // normal termination
      }
      catch (IOException e) {
        // abnormal termination
        System.err.println(e);
      }
      
    }  // end for