title: Creating a file using fopen()
body: <p>I am just creating a basic file handling program.
  the code is this:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main()
  {
  FILE *p;
  p=fopen("D:\\TENLINES.TXT","r");
  if(p==0)
  {
      printf("Error",);
  
  }
  
  fclose(p);
  }
  </code></pre>
  
  <p>This is giving Error, I cannot create files tried reinstalling the compiler and using different locations and names for files but no success.
  I am using Windows 7 and compiler is Dev C++ version 5</p>