Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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:
FILE *file;file = fopen("maze.txt", "rb");
if (file == NULL) {
printf("Error: Could not open file");
}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.
Any help is VERY MUCH appreciated!

This depends on what OS you are using TC on. The DOS level interrupt handlers have been converted to file handle compatible requests in the most recent versions of windows. If you think this could be the case try to eliminate the open bit specifications "rb" all together and see if that doesn't help.
borelli34@cox.net

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |