diff --git a/cxor.cpp b/cxor.cpp old mode 100644 new mode 100755 index e69de29..7bd0838 --- a/cxor.cpp +++ b/cxor.cpp @@ -0,0 +1,24 @@ +#include +#include + +int main(int argc, char* argv[]) +{ + std::fstream fInput; + fInput.open(argv[1], std::ios::in); + if (!fInput) + { + std::cout << "File does not exist."; + } + else + { + char ch; + while (!fInput.eof()) + { + fInput >> ch; + std::cout << ch; + } + std::cout << std::endl; + fInput.close(); + } + return 0; +} \ No newline at end of file