>Maybe you are running you program under debugger during compilation
i dont really understand what you want to say with this. i am using dev-c++ compiler and as far as i am concerned i can't compile the code while using debugger dev-c++ judt dont let you. But that dont seem to be my problem i have some lines of code that my program just dont run (see above: fopen() & allegro_message()), i even changed the allegro_message functions with printf functions but i still cant get them run.
>You have your files in a folder, say, "C:\MyProject". When you compile >with Dev-C++, it may create a folder and put the object and executable >files there. So, it is possible Dev-C++ puts the executable file >in "C:\MyProject\Debug". If you have your text file in "C:\MyProject", >the executable won't read it. So, get absolutely sure the executable >you are running is in the same directory as your text file.
>Windows is a bit strange and may search for your files anywhere.
>(Edited: Check this link for a proper way of finding the path to your >resources).
When i compile my project the compiler don't create any Debug folder i just have everything mixed-up