Hi, Every time you need to search for a record you are searching it from the file, why dont you keep a local array for that ? that will speed up things in searching.
Instead of writing into a text file, retrieving it will be a bit difficult, as you have a structure, why dont you write the structure directly into a binary file ??? You can read the whole structure at once and pass it into an array. That way your search and seek will be a lot easier and better. If you need to modify or even delete anything you can perform it on the array ( local ) and at the end of the program you can write the whole array back. It will definitely take time to start the program and end the program, that might possibly be a draw back. I would suggest you to use a linked link concept or a dynamic array to store the details. That way you wont need to allocate a fixed amount of memory in the program. Regards, Sunil.
