Thread: Once again
View Single Post
  #2 (permalink)  
Old July 1st, 2004, 07:17 AM
silver_cuts silver_cuts is offline
Authorized User
 
Join Date: Jun 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to silver_cuts Send a message via Yahoo to silver_cuts
Default

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.
Reply With Quote