The title pretty much clarifies the problem. When I write a code in C in Dev C++ that has to do with files, the program compiles very well, but it can't be executed because the 'Run' window closes immediately after compiling. This doesn't happen when I write a code to solve other problems (which aren't about reading files, writing in a file, etc.).
I have tried executing codes that have worked in the past, but for some reason don't execute now. Even though the code might be correct, there is no execution of the code at all.
This thing is really making me so frustrated right now. Could you please help me?