I am sort of new to C++.. I am trying to do my assignment, but I don't know how to read a file to input.. can someone give me an idea of how to do it?
I think it has to do with #include <fstream> (or <ifstream>?) i'm not sure which one.. and i know there are many ways to do it so..
How do i read a txt file? say the phone_book.txt file contains a list of phone numbers, xxx-xxx-xxxx?