C++ Programming/Code/Standard C Library/Functions/remove

From Wikibooks, open books for an open world
Jump to: navigation, search

remove[edit]

Syntax
#include <cstdio>
int remove( const char *fname );

The remove() function erases the file specified by fname. The return value of remove() is zero upon success, and non-zero if there is an error.

Related topics
rename