to read a double value from file in java
<p>My file contains only 18.746786635311242 as a content and nothing else
when I try to read that double number using code</p>

<pre><code>FileInputStream fin = new FileInputStream("output");
        DataInputStream din = new DataInputStream(fin);
         f = din.readDouble();
        System.out.println(f);
        din.close();
</code></pre>

<p>and try to print f the value shows 1.3685694889781536E-71</p>
