diff --git a/src/etc/filefuncs.cpp b/src/etc/filefuncs.cpp index 51c1f92..1523fa4 100644 --- a/src/etc/filefuncs.cpp +++ b/src/etc/filefuncs.cpp @@ -7,8 +7,7 @@ using namespace std; string getFileContent(const string& file) { ifstream filetoParse; - string lineinput; - string fullinput; + string lineinput, fullinput; filetoParse.open(file, ios::in); if (filetoParse.is_open()) while (getline(filetoParse, lineinput)) { fullinput.append(lineinput + "\n"); @@ -17,8 +16,7 @@ string getFileContent(const string& file) return fullinput; } -void setOutputFileContent(const string& language, const string& file, const string& content) -{ +void setOutputFileContent(const string& language, const string& file, const string& content) { static ofstream outputFile (file, ofstream::out); outputFile << content; } \ No newline at end of file