Using the input.txt file below that contains records, where each record consists
ID: 3631955 • Letter: U
Question
Using the input.txt file below that contains records, where each record consists of two fixed length fields. The ID is 3 bytes and Name is 50 bytes.
Finish the program below that reads the ID from a user and then prints the name that
corresponds to the given ID. Assume the records are not sorted and no End of Lines
markers.
input.txt
111aaaaa….444ddddd….555eeeee….666fffff….222bbbbb….
333ccccc……888hhhhh…..777ggggg……999iiiii…..
-----------------------
main() {
char c;
ifstream infile;
infile.open("input.txt",ios::in);