While loop checking for string c++
<p>I'm not sure why, but this loop will never end, when it should:</p>

<pre><code>while(TempL != "EndBlock") {
   getline(DataFileLoad, TempL);
   if(TempL != "EndBlock") {
      HitSounds.AddSound(TempL, TempL);
   }
}
</code></pre>

<p><code>EndBlock</code> is in the save file I've created more than once, I just cant work this one out.</p>
