So i need to read a text file consisting of student records (name,address,studen
ID: 3868610 • Letter: S
Question
So i need to read a text file consisting of student records (name,address,student id).I need each individual word stored in a variable. For example, johnny needs to be stored in name, 123 wonderworld drive in address, and 1234 in student id. I need to read the file and place them into a vector sorted by id. My question is how do i read the text from the file in place into a vector? I am doing this in c++.
Here is a sample of the text file.
1 Johnny 123 Wonderworld Drive 1234 2 Chris 123 Craddock Avenue 2341 -3 Marc 123 Aquarena Springs Drive 345Explanation / Answer
ddress, Phone Number, Email Address Update
Note: students who are employees must contact the HR office to make any changes.
Name Update
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.