I'm trying to type out whatever is in the .txt document, but I cannot open it for some reason. My code is
Code:int main(int argc, char *argv[]) { char ch=0;FILE *fp;fp=fopen("C:\Users\PC\Desktop\New folder\Question 5\one.txt",'r');while(ch!=EOF){ printf ("%c", ch); ch=getc(fp); Sleep (200);}fclose(fp);return 0; }
I keep getting an error with my fp=fopen so how do you open the text? Do i have anything else wrong with my code
Sorry I don't know how to make the code look neat.