I created a structure containing two variables of type char.

i.e.
Code:
char name[64],char details[128];
And a pointer to structure now when I write this name and details to file and now I want to change the particular name.

i.e.

To modify then if the stored file name is greater than the entered name then it is erasing the next record line also I need to allocate some memory.