title: Checking if word exists in a text file c++
body: <p>I need to check if a word exists in a dictionary text file, I think I could use strcmp, but I don't actually know how to get a line of text from the document. Here's my current code I'm stuck on.</p>
  
  <pre><code>#include "includes.h"
  #include &lt;string&gt;
  #include &lt;fstream&gt;
  
  using namespace std;
  bool CheckWord(char* str)
  {
      ifstream file("dictionary.txt");
  
      while (getline(file,s)) {
          if (false /* missing code */) {
              return true;
          }
      }
      return false;
  }
  </code></pre>