Question: C++ file reading help Your task is to create a program that reads in an input file phoneBook.txt that contains a comprehensive list of contacts.

C++ file reading help

Your task is to create a program that reads in an input file phoneBook.txt that contains a comprehensive list of contacts. The contacts names and phone numbers should be read into 2 vectors: vector names; vector phoneNumbers;

An example of the input file is provided below: phoneBook.txt

Each line of this file contains the following information separated by a comma: 1. Full Name (String) 2. Phone Number (String)

Lara Bush 2142842934 Kaiy Bates 2143954218 Laren Graham,7130385534 Kortney Kardasian2149492789 Doak Waker5127834500

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!