u will have to use a logic like this.
jump to the end.
while (record loc > place where u want to insert text)
{
go back 1 record
read it.
write it just after the read record.
go back 2 records.
}
write the new record.