i have created a structure and passed the intances of thes structures to the file


how can i access each record.
either delete or for searching e.t.c.........

plz help me in this.

Its not very clear what you did and what you want. Do you mean you created a structure and saved their contents to a file, now you want to search the file for a specific record ?

If that is correct, then read the file sequentially from beginning to end, one record at a time until you find the record you want to work with. If you want to delete a record you normally have to rewrite the entire file except for the record you want to delete. There are other alternatives but they are a little more complicated and may not be suitable for your assignment or current level of programming skills.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.