title: Read the contents of a file, then append to the file
body: <p>I cannot figure out how to read the contents of a file and then append more data to a file. <code>hGetContents</code>, which I am using at the moment seems to close the file after reading, thus I cannot write to it.</p>
  
  <p>How can I work around this? </p>