I'm trying to do some basic file io in C. For my first attempt I'm just trying to print out the contents of a file (unsuccessfully)
Here's my code:
But nothing gets printed.Code:FILE *readfile = fopen("./www/index.html","w+"); char c; while((c=getc(readfile)!=EOF)) printf("%c",c); fclose(readfile);
I was reading this:
Notes on C: File I/O