title: fopen and windows
body: <p>This is the first time I'm coding C in Windows and a weird bug is driving me crazy. </p>
  
  <p>I'm trying to open a .txt file using fopen, and it keeps giving me the "file doesn't exist" error (it also gave me the "no permission" error, once). </p>
  
  <p>My code is as follows (doesn't get any simpler than that):</p>
  
  <pre><code>FILE *file;
  
  if((file=fopen("C:\\Users\\ste\\Desktop\\file.txt", "r"))==NULL) 
  {
      printf("Cannot open file.\n");
      puts(strerror(errno));
  
      getchar();
      exit(1);
  }
  </code></pre>
  
  <p>Am I missing something here? Thanks in advance!</p>