I need to know how to delete a file in a windows program, without using the system() function. It works that way, but it also switches away from my program. I'm using allegro in a full screen mode, so that's really annoying when it does that. Are there any functions specifically for that, or are there any functions that work the same as system() but work correctly under windows?