title: Java Properties, getting file path
body: <pre><code>logpath = LoggerUtils.getProperties().getProperty("log.path");
  System.out.println("logpath: " + logpath);
  </code></pre>
  
  <p>The above code returns:</p>
  
  <pre><code>logpath: C:UsersMauriceDesktopLogs
  </code></pre>
  
  <p>In the properties file is:</p>
  
  <pre><code>log.path    C:\Users\Maurice\Desktop\Logs
  </code></pre>
  
  <p>How do I retain the file separators? I want this to work on Linux as well and not just Windows.</p>