title: Search for multiple words in very large text files (10 GB) using C++ the fastest way
body: <p>I have this program where I have to search for specific values and its line number in very large text file and there might be multiple occurences for the same value.</p>
  
  <p>I've tried a simple C++ programs which reads the text files line by line and searches for a the value using strstr but it's taking a very longgggggggggggggg time</p>
  
  <p>I also tried to use a system command using grep but still it's taking a lot of time, not as long as before but it's still too much time.</p>
  
  <p>I was searching for a library I can use to fasten the search.
  Any help and suggestions? Thank you :)</p>