If you run your program through the VS (judging from your screenshot in the last thread), then the working directory isn't set to where the program resides (well on VS6 anyway).
May I suggest a revamp of LoadFile?
Code:
char LoadFile(const char * FileName, ...
Doublecheck to see if the program is really working inside the directory that it is in, and that its current directory is not some other one.
Yes, see the VS comment ^^.
Test with:
Code:
char path[MAX_PATH];
GetCurrentDirectory(sizeof(path), path);
MessageBox(0, path, "Current Path", 0);
@nadroj - Escape your chars,
Code:
relative2 = fopen("images\\myfile.txt","r");
absolute = fopen("c:\\stuff\\myfile.txt","r");