| 130 | } |
| 131 | |
| 132 | bool check_file_exist(const std::string file_name) |
| 133 | { |
| 134 | FILE* fp = fopen(file_name.c_str(), "r"); |
| 135 | if(!fp) |
| 136 | { |
| 137 | std::cerr << "Input file not existed: " << file_name << "\n"; |
| 138 | return false; |
| 139 | } |
| 140 | fclose(fp); |
| 141 | return true; |
| 142 | } |
no test coverage detected