> 
> is how I read this
>  |  statment:
>  |  seek(FH,(-s "foo.txt")-2,0);
>  |  
>  |  seek back 2 bytes from the end of the file ?
>  |  
> > 
>     Actually when the third argument ( aka WHENCE ) is set to zero it
>     means "Set the new position to the second argument".  So it's not
>     saying "Go to the end and seek back 2 bytes" it's simply 
> saying seek
>     to size - 2 which happens to be 2 bytes before the end. 
> 
>     Does that make sense? 

Yes it does. Thank you !

 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to