Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. bool greper(string filename, string parser) {
  2. string line = "";
  3. ifstream in(filename.c_str());
  4. if( in.is_open()) {
  5. while(getline(in,line)) {
  6. if (line.find(keyword)) {
  7. return true;
  8. }
  9. }
  10. }
  11. return false;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement