Which snippet will you use to delete file named "file"?
unlink("file");
int fd=open("file",O_RDWR); unlink(fd); close(fd);
FILE *f=fopen("file","rw"); unlink(f); fclose(f);
open("file",O_DELETE);
Answers
Answered by
0
open ("file",O_ DELETE)
Similar questions