title: Java open file on shared location
body: <p>I want to do something like this:</p>
  
  <p>File root = new File("C:/file.txt");</p>
  
  <p>but on a folder which is shared on a local network. So lets say the file is on 192.168.1.28 how make it with above command?</p>
  
  <p>Next not working: </p>
  
  <p><code>File root = new File("//192.168.1.2/file.txt");</code></p>
  
  <p><code>File root = new File("\\\\192.168.1.2/file.txt");</code></p>
  
  <p><code>File root = new File("\\192.168.1.2/file.txt");</code></p>
  
  <p><code>File root = new File("file:\\192.168.1.2/file.txt");</code></p>
  
  <p><code>File root = new File("file://192.168.1.2/file.txt");</code></p>
  
  <p>Thanks a lot.</p>