It seems there’s a way to erase the contents of a file, but is there any way to delete an entire file, using SDL 1.3? Given that we can create files using SDL, it seems practical to have a way to delete them too…
Eh, nevermind. Just occurred to me I can simply using the ANSI C function remove().
SDL doesn’t really have wrappers for basic file i/o. On some platforms
(linux) you can use the C library function “unlink()”. Under Windows it is
"_unlink()".
KenFrom: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of VernJensen
Sent: Monday, November 29, 2010 3:07 PM
To: sdl at lists.libsdl.org
Subject: [SDL] Way to delete files?
It seems there’s a way to erase the contents of a file, but is there any way
to delete an entire file, using SDL 1.3? Given that we can create files
using SDL, it seems practical to have a way to delete them too…