<pre>on appendToFile appendThis,filePath  put readFile(filePath) into theContent  put the number of lines of theContent into num  put appendThis into line num+1 of theContent  writeFile theContent,filePathend appendToFile</pre>