Non usare system.
usa remove() piuttosto. http://www.cplusplus.com/reference/c...cstdio/remove/