What is difference between remove and unlink?

Trang Mắm

New member
What is difference between remove and unlink?
Answer
remove is portable, and unlink is Unix-specific. :p. 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) .
 

Tìm kiếm

Back
Top