Hi
I am a beginer to C Programming.I was trying to open a .txt file for reading but couldnt do that this is my code..Help me out.
Code:#include<stdio.h> #include<conio.h> main() { FILE *fp; clrscr(); fp=fopen("raghu.txt","r"); if(fp==NULL) printf("ERROR IN OPENING THE FILE"); else { printf("hi"); fprintf(fp,"\n HI"); } fgetc(fp); fclose(fp); getch(); }