I\'ve been trying to open a file and output text, but I keep getting errors. So I thought I would start at the very beginning and just try opening the file. This is my cod
Well, now you know there is a problem, the next step is to figure out what exactly the error is, what happens when you compile and run this?:
#include #include int main(void) { FILE *file; file = fopen("TestFile1.txt", "r"); if (file == NULL) { perror("Error"); } else { fclose(file); } }