This commit is contained in:
Intelligide 2016-11-28 21:48:15 +01:00
parent fa10fb123a
commit 68cc813645
1 changed files with 4 additions and 1 deletions

View File

@ -81,7 +81,10 @@ int main(int argc,char *argv[])
string file = argv[optind];
ifstream fileStream(file, std::ios::in);
if(fileStream.is_open()) {
// TODO
string line;
while(getline(fileStream, line)) {
inputStr += line + "\n";
}
} else {
cerr << "Cannot open file: " << file;
return 1;