title: writeDouble() method of DataOutputStream is writing data in text document in encoded form
body: <p>I have the following code</p>
  
  <pre><code>public static void main(String aed[]){
      double d=17.3;
      try{
              DataOutputStream out=null;
              out=new DataOutputStream(new BufferedOutputStream(new FileOutputStream("new.txt")));
              out.writeDouble(d);
              out.flush();
          }catch(FileNotFoundException fnf){
              fnf.printStackTrace();
          }catch(IOException io){
              io.printStackTrace();
          }
  }
  </code></pre>
  
  <p>Now I am writing this double value to a text file new.txt , but following value is getting in text file</p>
  
  <pre><code>@1LÌÌÌÌÍ
  </code></pre>
  
  <p>But when i use</p>
  
  <pre><code>out.writeUTF(""+d)
  </code></pre>
  
  <p>It works fine.
  Please explain the encoding that is going on here.</p>