Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool greper(string filename, string parser) {
- string line = "";
- ifstream in(filename.c_str());
- if( in.is_open()) {
- while(getline(in,line)) {
- if (line.find(keyword)) {
- return true;
- }
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement