title: Create txt file on Linux as super user with Java
body: <p>I am new to java and Linux. I have to create a local file on Linux with Java code. But it does not allow me to create the file only if I am running as super user.</p>
  
  <p>In terminal, if I run "vi test.text", it does not allow me to writer to the file. So need to run as super user "sudo vi test.text" to create the file. </p>
  
  <p>How to write the Java code to run as super user to create the file?</p>
  
  <p>Thanks! </p>