Hi Nitin,
I think that the form which will get the pointer to the end of file is
seek(length())
length() returns the totalbytes infile.
seek() positions the pointer just before the byte specified as it argument.
so if we seek to the length() then the pointer will be positioned just after the last byte coz the pointer position starts from 0 (zero).
seek(length()-1) will place the pointer just before the last character.
I hope it is correct.
Do correct me if I am wrong.