title: NoSuchFileException in Files.newInputStream with StandardOpenOption.CREATE
body: <p>I am trying to open a file for reading or create the file if it was not there.
  I use this code:</p>
  
  <pre><code>String location = "/test1/test2/test3/";
  new File(location).mkdirs();
  location += "fileName.properties";
  Path confDir = Paths.get(location);
  InputStream in = Files.newInputStream(confDir, StandardOpenOption.CREATE);
  in.close();
  </code></pre>
  
  <p>And I get <code>java.nio.file.NoSuchFileException</code></p>
  
  <p>Considering that I am using <code>StandardOpenOption.CREATE</code> option, the file should be created if it is not there.</p>
  
  <p>Any idea why I am getting this exception?</p>