diff options
Diffstat (limited to 'anymux.cpp')
-rw-r--r-- | anymux.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -29,6 +29,7 @@ */ #include <iostream> +#include <fstream> #include <poll.h> #include "datatypes.h" @@ -73,6 +74,15 @@ int main(int argc, char* argv[]) gOpt.printUsage(); exit(-1); } + + std::ifstream file( gOpt.getFileName().c_str() ); + if( file.is_open() ) + file.close(); + else + { + std::cout << "ERROR: unable to open file!" << std::endl; + exit(-1); + } SignalController sig; sig.init(); |