The task which i have to do is search according to name, dob, and sex. The user will input a criteria and it will show out everything that is stored inside the .dat file. Plus i need to create new .idx categorizing the criteria. Please help me on this. Thank you.

As per pretty much every other reply on the forum to posts like yours, and as per the rules: Please show some effort before asking for homework help.

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.