Computer Science, asked by Amrutpradhan, 8 months ago

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 ifarhat761
0

open ("file",O_ DELETE)

Similar questions