Well actually I have no idea about file handleing in C++. I was going through the posts by fire net on fstream.. I am very confused the basic problem is that I am a new commer to C++ and I just cant get to by heart the programmes so I cant understand what various codes mean... So if now u get the hang of what I am trying to relate PLEASE HELP!!!