title: Creating file on filesystem with java.io.File
body: <p>I'm trying to create an empty .properties file on my filesystem using java.io.File.</p>
  
  <p>My code is: </p>
  
  <pre><code>File newFile = new File(new File(".").getAbsolutePath() + "folder\\" + newFileName.getText() + ".properties");
  
  if (newFile.createNewFile()){
      //do sth...
  }
  </code></pre>
  
  <p>It says that it's impossible to find the specified path.
  Printing the Files's constructor's argument it shows correctly the absolute path.</p>
  
  <p>What's wrong?</p>