please include unistd.h and unlink() the file at the end