title: I am unable to open a file in c
body: <p>i created a text file in d: drive named abc. I am unable to open it. Please tell me how to do so.</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  #include&lt;stdlib.h&gt;
  void main()
  {
      FILE *fp;
      clrscr();
      fp = fopen("D:/abc.txt","r");
      if(fp == NULL)
      {
          printf("\nCannot open");
          getch();
          exit(1);
      }
      fclose(fp);
      getch();
  }
  </code></pre>