I don't know of a method, but just did a bit of searching, and found a method that may suit your needs.
Open the file, and grab the contents currently there. Then file append to add whatever you need to add. Then re-insert the old contents below.
You've probably seen this, but in case you haven't...