title: Why is FileWriter not creating a new file ? FileNotFoundException
body: <p>So I have a code snippet as follows. Im trying to find out why it throws a FileNotFoundException. </p>
  
  <pre><code>File file= new File (WORKSPACE_PATH+fname);
  FileWriter fw;
  if (file.exists())
  {
       fw = new FileWriter(file,true);//if file exists append to file. Works fine.
  }
  else
  {
       fw = new FileWriter(file);// If file does not exist. Create it. This throws a FileNotFoundException. Why? 
  }
  </code></pre>