title: Append file content to the top instead of bottom?
body: <p>i have a form that the staff can fill to send their message to our updates page. My code is </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>$filename = "files/armaupdates";
  $text = $_POST['update'];
  
  $updatesep = "&lt;hr&gt;&lt;br&gt;&lt;hr&gt;&lt;br&gt;";
  
  $fp = fopen($filename, "a+");
  
  if($fp){
   fwrite($fp, $text);
   fwrite($fp, $updatesep);
   fclose($fp);
   echo "Updates has been written!";
  }
  else {
   echo "Error!";
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>I'm going insane since i want the text to be at the top of the file instead of the bottom, anyone?</p>