title: Open file with fopen, given absolute path on Windows
body: <p>I'm trying to make a program that counts the number of lines of a file, when I try to pass the absolute path to the fopen function, is simply tells me that is not found, here is my code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  using namespace std;
  
  int main(int argc, char *argv[])
  {
      int i=0;
      char array[100];
  
          char caracteres[100];
          FILE *archivo;
          archivo = fopen("C:\Documents and Settings\juegos psps.txt","r");
          if (archivo == NULL){cout&lt;&lt;"Dont Work";}
          while (feof(archivo) == 0)
          {
                  fgets(caracteres,100,archivo);
                  i++;
                  }
                  cout &lt;&lt; "Number of lines:" &lt;&lt; i ;
                  return 0;
  }
  </code></pre>
  
  <p>How should I pass the absolute path to my program so you can open the file?</p>