jeudi 5 novembre 2015

C++ function prototyping input file into vector

create a function which reads a text file & returns its contents in a vector; its prototype is sdd::vector<std::string> SDI::readTextFile(const std::string );

The initial specification is to read a text file the name of the file is the parameter, which can include a path. The return value will be a vector of strings.

What is the second function asking me to do? Would std::ifstream File("textFile.txt");meet the prototype?

Aucun commentaire:

Enregistrer un commentaire