I'm having a problem opening a file and I'm thinking it's because of directories or something. I'm working on an image loader and i have a file test.bmp, but whenever I call the function, it fails because fopen is returning 0 meaning it can't find the file, I know it's able to be opened, because I copied the exact same code into a function in the main cpp file and it opened just fine. I have the image loader in a folder called loaders and also in a folder called loaders in my Dev-C++ project. I'm guessing that's causing a problem? Putting the image in the loaders folder didn't work, putting ../test.bmp as the string didn't either. Any idea why it can't find the file, and how I can fix it? Thanks in advance.