hi, If you're keen on using the C++ library, u could do this with fstream's ::seekg to seek to the end(ios::end) minus the offset which is calculated. The offset would be calculated using sizeof(string). Specify the offset in (-)ve. Now you can write the present contents from this location. P.S. Open the file in binary mode. hope this helps, Sharad In C you write your own bugs, in C++ you inherit them ! - Anonymous