title: FileOutputStream does not create file
body: <p>I actually checked other posts that could be related to this and I couldn't find any answer to my question. So, had to create this newly:</p>
  
  <p>The file does not get created in the given location with this code:</p>
  
  <pre><code>    File as = new File ("C:\\Documents and Settings\\&lt;user&gt;\\Desktop\\demo1\\One.xls");
      if (!as.exists()) {
          as.createNewFile();
      }
      FileOutputStream fod = new FileOutputStream(as);
      BufferedOutputStream dob = new BufferedOutputStream(fod);
      byte[] asd  = {65, 22, 123};
      byte a1 = 87;
      dob.write(asd);
      dob.write(a1);
      dob.flush();
  
      if (dob!=null){
          dob.close();
      }
      if(fod!=null){
          fod.close();
  </code></pre>
  
  <p>The code runs fine and I don't get any FileNotFoundException!!
  Is there anything that I'm missing out here?</p>