We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c265337 commit a654c80Copy full SHA for a654c80
cpp_module_01/ex04/main.cpp
@@ -12,7 +12,7 @@ int main(int argc, char **argv)
12
if (inFile.fail() || inFile.peek() == EOF)
13
return(std::cout << "File is directory/is empty/failed opening" << std::endl, 1);
14
std::ofstream outFile((fileName + ".replace").c_str());
15
- if (inFile.fail())
+ if (outFile.fail())
16
return(std::cout << "Openning output file failed" << std::endl, 1);
17
18
size_t index;
@@ -29,4 +29,4 @@ int main(int argc, char **argv)
29
outFile.close();
30
return (0);
31
32
-}
+}
0 commit comments