title: Searching files from root directory on mac - Java
body: <p>I have a file on my Desktop I have to find</p>
  
  <p>If I insert the following code:</p>
  
  <pre><code>            f = new RandomAccessFile("\Desktop/greg.txt", "r");
  </code></pre>
  
  <p>I get an error on the <code>\</code> </p>
  
  <p>But this is how I access the root directory. Anyone know what the problem is?</p>