title: Access File in Mac using java.io.file
body: <p>I am using <code>java.io.File</code> to create a new file in java.On Mac-Os I am using the same code which was working fine on windows but its not working on mac.</p>
  
  <p>I am using </p>
  
  <pre><code>File file = new File(path);
  </code></pre>
  
  <p>to create a new file.</p>
  
  <p>In windows:
  I used <code>String path = "C:\test\1.html";</code>
  It was working fine.</p>
  
  <p>On a Mac:
  I want to create file at <code>"/Users/pls/1.html"</code>
  But it is throwing error as </p>
  
  <pre><code>java.io.FileNotFoundException : /Users/pls/1.html (No such file or directory)
  </code></pre>
  
  <p>Please help</p>