I have installed turbo c into C:\TC, and created a Work folder in that, so I have C:\TC\Work\test.c
In test.c, a portion of it is:
I get a could not open file, but maze.txt is in C:\TC\Work... I've also tried just putting it into C:\TC, yet it still does not seem to work. I've also tried Going Alt+O->Directories->Setting to C:\TC\Work.Code:FILE *file; file = fopen("maze.txt", "rb"); if (file == NULL) { printf("Error: Could not open file"); }
Any help is VERY MUCH appreciated!




Reply With Quote