From 68cc8136451e4d16b0214895abf77ebb92f1cfd2 Mon Sep 17 00:00:00 2001 From: Intelligide Date: Mon, 28 Nov 2016 21:48:15 +0100 Subject: [PATCH] Update --- src/ast/src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ast/src/main.cpp b/src/ast/src/main.cpp index 380845f..cc464a4 100644 --- a/src/ast/src/main.cpp +++ b/src/ast/src/main.cpp @@ -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;