there is not enuff example in fseek() at php.net
can u explain further...
i used fseek
but it seems not be able to set the cursor before the "-end-"
and i cant use a mode or a+
i can only use r+, which set the cursor at the BOF
can you help me to elaborate fseek using SET_CUR
and by the way,
one other solution that i can think of is by counting
the amount of charachter inside,
perhaps i can use :
$subtract = $total_char - 5 //since -end- = 5 char
fseek($fp, $subtract, SEEK_CUR);
[/code
but i need to know how to check the amount of char in a text file
thanks in advanced