Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Address Book Search Program
I have been given a task to do for a college assignment. It is to find or create a program which allows entries of an address book to be displayed depending on a unique identifier entered (e.g. "PersonNumber") and write about how the program works.
The entries of the address book should be stored on a text file. The entries have to include a PersonNumber or ID, First Name, Surname, Address, Phone Number. The program has to use a binary search algorithm. The program does not need to add any entries to the text file or remove entries -- the program only needs to read from the text file using binary searches.
My problem is that I am rubbish when it comes to programming and I could not find such a program that does this in psacal. Will someone please build me a basic program (just reading from the text file - never mind about adding or removing data)