I am confused in tellg funtion can any body tell me its syntax also for seekg();.

tellg()

seekp()

You can read all about the other fstream methods here

If you are still confused after reading the above links please explain what you are confused about.

Thank you for your help . It is some thing best you have done for me.