title: check a text file for 0 or 1 and return based on result?
body: <p>I am needing help checking for a string from a text file that is stored on my computer.. pseudo example</p>
  
  <pre><code>if String = x {
      Sleep(100)
  }
  else {
      exit(0)
  }
  </code></pre>
  
  <p>I'm just trying to check the text file for a line of text then return a value based on that line... for example if the string is <code>continue</code> then I would like it to continue else <code>exit(0)</code>.</p>
  
  <p>My C++ project is a dll. Basically what I'm trying to do is open a file that is in the same location as the dll, check it for <code>0</code> or <code>1</code>, if it returns <code>1</code> proceed with the process if it returns <code>0</code> terminate it.</p>