diff --git a/src/etc/filefuncs.cpp b/src/etc/filefuncs.cpp index c33cba1..b7f44f7 100644 --- a/src/etc/filefuncs.cpp +++ b/src/etc/filefuncs.cpp @@ -6,7 +6,7 @@ using namespace std; string getFileContent(const string& file) { ifstream fileStream(file, ios::in); - if (not fileStream.fail()) { + if (fileStream) { string lineinput, fullinput; while (getline(fileStream, lineinput)) { fullinput.append(lineinput += '\n');