Hi Programmed,
You write the entire object to the file right?
So he is what you do.
Open the file and read one object from it.. Check if the customer no. is matching .. if yes you have found the record that you are looking for if not read next record ... repeat this procedure till you reach the EOF .. if you reach EOF before finding the record means that you dont have any record in the file corresponding to what you are looking for ..
Another thing that i would like you to do in this is keep this search function as a MEMBER function of the class whose objects which write into the file .. i think it will make your coding easier ...
if you have any more trouble send me your code .. i will try to look into it ... but try urself first ...
Well all the best ...
Of course my email id
[email protected]
and plz tell me your name .. programmed sounds weird
Sudhan.
--------------------------------------------------
Sudhan Kanitkar.
Everything Is In Our Hands.