diff options
Update task1.cpp
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | Sem. 02/task1.cpp | 2 |
diff --git a/Sem. 02/task1.cpp b/Sem. 02/task1.cpp index 862cf07..2a6e69e 100644 --- a/Sem. 02/task1.cpp +++ b/Sem. 02/task1.cpp @@ -8,7 +8,7 @@ int main() { ifstream inputFile("selfPrintingTask.cpp"); - if (inputFile.fail()) + if (!inputFile.open()) { cout << "Error!" << endl; return -1; |
