Siva Prakasam wrote: > yes, i want to insert a file without overwriting its existing content. > i looked for IO:SEEK_CUR and IO:SEEK_SET which will set the position.but > it overwrites the existing content. how to do that? > You'll have to make a new file. Copy the old file contents up to the point you want to insert the new material, insert the new material, then copy the remainder of the old file. After the new file is safely closed, delete the old file.