remove() function: remove(0 function is used to erase a particular file.
int remove(constant char *file_name);
fflush() function: When an opened file is closed, the contents are written to external device and no info is left in disk buffer. This process is known as flushing of a stream.
int fflush(FILE *p);
where p is afile pointer.