title: String in a text file containing a string in C++
body: <p>here's a part from my code</p>
  
  <pre><code>string word;
  cin &gt;&gt; word;
  string keyword;
  while (file &gt;&gt; keyword &amp;&amp; keyword != word){}
  </code></pre>
  
  <p>This searches for a word in a file and if it finds that word (keyword) then it starts a string from there later. It's working perfectly at the moment. My problem is that when the line is</p>
  
  <pre><code>"Julia","2 Om.","KA","1 Om. 4:2"
  </code></pre>
  
  <p>if I enter word Julia I can not find it and use it for my purposes (just FYI I'm counting it). It works if I search for "Julia","2 since this is where space comes in.</p>
  
  <p>I'd like to know how can I change line </p>
  
  <pre><code>while (file &gt;&gt; keyword &amp;&amp; keyword != word){}
  </code></pre>
  
  <p>so I can see when the text/string CONTAINS that string since at the moment it only finds and accepts it if I enter the WHOLE string perfectly.</p>
  
  <p>EDIT: Also what I have found this far is only strstr, strtok, strcmp. But these fit more with printf than with cout. </p>