import java.io.* ;
public class DataReader {
   
   /** Method: An entry point for program execution */
   public static void main(String[] args) throws IOException  {
      
      // instantiate and prepare byte stream objects
      File inFile = new File("moon.txt") ;
      FileInputStream fis = new FileInputStream(inFile) ;
      DataInputStream dis = new DataInputStream(fis) ;
                                
      // Read file and print the content
      boolean next = true ;
      try {
         while (next) {        
            System.out.println(dis.readDouble()) ;
         }
         dis.close() ;               // close file
      } catch (IOException e) {
         // do nothing
      }
   }
}
