If you want to go to the very end just use the size of the file as an argument to /fseek.
Code:
fopen fp myfile.txt
fseek fp $file(myfile.txt).size
fwrite fp mydata
fclose fp