Skip to content

Instantly share code, notes, and snippets.

@kauevestena
Created December 17, 2015 22:54
Show Gist options
  • Save kauevestena/6572dfeb840959303237 to your computer and use it in GitHub Desktop.
Save kauevestena/6572dfeb840959303237 to your computer and use it in GitHub Desktop.
to do all file manipulations
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