title: Writing an array of strings to a file - one line?
body: <p>Here is an example where I read lines from a file as strings to make a whole file as an array of strings: </p>
  
  <pre><code>String[] ArrayOfStrings = (new Scanner( new File("log.txt") ).useDelimiter("\\A").next()).split("[\\r\\n]+");
  </code></pre>
  
  <p>I there any similar way to do the write back into the file:</p>
  
  <pre><code>something_that_writes_into_file(ArrayOfStrings)?
  </code></pre>
  
  <p>I know about <code>PrintWriter</code>, <code>Buffer</code> and other stuffs using loops.</p>
  
  <p>My question is specifically about something which is more compact, say - a one line solution?</p>