you can use boost::filesystem to check file existence