title: Java: How to create a file in the C:\ drive
body: <p>I am trying to get the plain <code>C:\</code> path with java to store files in. I am having issues trying to figure this out as other resources didn't tell me, but they were using other paths. I know how to get the user's home like:</p>
  
  <p><code>File f = new File(System.getProperty("user.home");</code></p>
  
  <p>but that only creates a new file in the user's main folder <code>C:\Users\&lt;username&gt;\</code>. How do I just create a file within the <code>C:\</code> directly in the drive?</p>