You can also use the windows api for that purpose. This is however a more costly approach. The function you need to call is SHFileOperation. You can find the ms documenation about the function here:
Be careful. file_delete is much safer than using the windows api. If you use SHFileOperation there are pretty good chances the file operation cannot be inverted.
Always learn from history, to be sure you make the same mistakes again...
Re: Question about deleting files from inside the runtime..
[Re: Uhrwerk]
#363619 03/13/1117:1003/13/1117:10
I am making a game that has only so many save slots (10). So for example, when the player chooses slot 1 - if there is already a game saved there I want the game to prompt the player "Do you want to overwirte this file: <filename>?". So basically i need to delete the file *1.save.
@Myrkling;
File_delete did the trick beautifully! thank you. I need to maybe RTFM occasionally i guess ;D (I usually do read the manual - i guess i just missed that somehow)