Is there a way to do something like
system("rm something*");
but platform independent? I needed on both Linux and Windows, but I'd also like to avoid parsing the whole dir (opendir(), readdir(), closedir()) and substr()-ing each file.
Thanx
P.S. I could make a replacement rm.bat batch file on Windows or del script on Linux, but that doesn't look very pretty.