there might be...... its un-tested by me but u can use:
$fp = fopen("filenbame.txt","aw"):
this places the file pointer at the beginning of the file (like the write function), and does not delete the rest of the data (the append function).
i haven't tried it myself but apparantly it works :-)