Update
This commit is contained in:
parent
fa10fb123a
commit
68cc813645
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue