i have two person files which are sorted by ID
one is old and the second is new(the updated person list)
i need to create 2 files:
the first is all the new persons which do not appear in the old fle
sorted by id
and the second file is the same as file one but sorted by the name of that person.
i am not allowed to use rewind.
i know how to create the first file
i just compare the lines and put the smaller id's of the new file .
and it will make a sorted by id file.
but how to sort the new people by name.
i need to do some how a paralel proccess