title: Compilation Error in C-File handling
body: <pre><code>#include&lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  FILE *fp;
  int main()
  {
    int val;
    char line[80];
    fp=fopen("\Users\P\Desktop\Java\a.txt","rt");
    while( fgets(line,80,fp)!=NULL )
     {
       sscanf(line,"%d",&amp;val);
       printf("val is:: %d",val);
     }
     fclose(fp);
     return 0;
  }
  </code></pre>
  
  <p>Why is there a compile error in the line fp=fopen("\Users\P\Desktop\Java\a.txt","rt")?</p>