Created
December 17, 2015 22:54
-
-
Save kauevestena/6572dfeb840959303237 to your computer and use it in GitHub Desktop.
to do all file manipulations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vector<string> readFile(string filename) | |
{ | |
ifstream in(filename); | |
vector<string> res; | |
string line; | |
while (std::getline(infile,line)) | |
{ | |
res.push_back(line); | |
} | |
return res; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment