title: How do I do this using guava?
body: <p>Is there a way of achieving the below using Guava?</p>
  
  <pre><code>//anything better than using Files.append() in a loop?
  org.apache.commons.io.FileUtils.writeLines(File file, Collection lines, String lineEnding);
  
  //gives a byte[] that is fed to Files.write(byte[] from, File to)
  org.apache.commons.lang.SerializationUtils.serialize(Serializable obj) 
  
  //get an object from a byte[] 
  SerializationUtils.SerializationUtils.deserialize(byte[] from)
  </code></pre>
  
  <p>Thanks.</p>