title: C++ program sees an included .txt file as code
body: <p>I am just learning the very basic aspects of input/output streams, and can't seem to have my program read a text file. It gives me errors that indicate it is trying to read the .txt file as C++ code, while I am just using values in there to test my stream.</p>
  
  <p>These are the contents of my included .txt file:</p>
  
  <pre><code>12345
  Success
  </code></pre>
  
  <p>And here is the main program's code:</p>
  
  <pre><code>#include &lt;fstream&gt;
  #include &lt;iostream&gt;
  #include "C:\Users\Pavel\Desktop\strings.txt"
  using namespace std;
  
  int main (int nNumberOfArgs, char* pszArgs[])
  {
      ifstream in;
      in.open("C:\Users\Pavel\Desktop\strings.txt");
      int x;
      string sz;
      in &lt;&lt; x &lt;&lt; sz;
      in.close();
      return 0;
  }
  </code></pre>
  
  <p>The first error message I receive is "expected unqualified-id before numeric constant" which tells me the program is attempting to compile the included file. How can I prevent this and have the text file read as intended?</p>