I can't find other places that messes with file interfaces by searching. There shouldn't be any either.I'm attempting to write to an ordinary folder. Or... actually I'm not sure. I'm writing to the root directory and considering the nature of physfs that could be several places. I think.I still don't know what to do though.Here's what I'm trying to do:

Make sure your current working directory is correct, and make sure that the 'data' folder exists.

SpectreNectar

I tried doing as you suggested but it was still the same result.

I think my current working directory is wrong like you suggest actually. But I'm not sure how to set it or figure out what it is. The data dir exists - I'm already loading resources in and they are in that dir. I actually copy pasted the path originally.

Trent Gamblin

Try al_set_standard_file_interface() before doing that.

Edgar Reynaldo

If you're using gcc, you can use getcwd(constchar* buffer , int buf_size); to check the current working directory.

If I call al_set_standard_file_interface() just before al_fopen then it DOES work, but the program crashes because I need PhysFS to display the font and graphics of the closing dialog I use (and basically everything with resources everywhere).

My problem indeed seems to be figuring out how to open a file for writing using the physfs file interface.