What is difference between remove and unlink?
Answer
remove is portable, and unlink is Unix-specific.
. The remove() function
removes the file or directory specified by path. If path specifies a directory, remove(path) is the equivalent of rmdir(path) . Otherwise, it is the equivalent of unlink(path) .
Answer
remove is portable, and unlink is Unix-specific.
removes the file or directory specified by path. If path specifies a directory, remove(path) is the equivalent of rmdir(path) . Otherwise, it is the equivalent of unlink(path) .