Question: C++ Program Please! Need a program that reads a file, stores its contents into an array, THEN reads a another file called the command file

C++ Program Please!

Need a program that reads a file, stores its contents into an array, THEN reads a another file called the command file that tells you what data you need to search and get from the array.

EXAMPLE INPUT FILE thats stored into array:

{name:Jone. Rock,age:25,dept:CS},{na me:Alice.Sun,age:46,dept:CS}, {name:Asen.Huan,age:30,dept:EE},{name:Bob.Carlos,ag e:20,dept:EE}, {name:Am aya.Jeremy,age:24,dept:ISS SO},{name:Kim.Jose,age:34,dept:Edu}

THEN READ THIS COMMAND FILE:

name:JONE.ROCK

EXAMPLE OUTPUT, MUST REMOVE WHITESPACES!

{name:Jone.Rock,age:25,dept:CS}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!