new files
This commit is contained in:
parent
3af7344581
commit
86c034bb8b
1364 changed files with 21352 additions and 0 deletions
9
Task/Delete-a-file/C/delete-a-file-1.c
Normal file
9
Task/Delete-a-file/C/delete-a-file-1.c
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
remove("input.txt");
|
||||
remove("/input.txt");
|
||||
remove("docs");
|
||||
remove("/docs");
|
||||
return 0;
|
||||
}
|
||||
9
Task/Delete-a-file/C/delete-a-file-2.c
Normal file
9
Task/Delete-a-file/C/delete-a-file-2.c
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include <unistd.h>
|
||||
|
||||
int main() {
|
||||
unlink("input.txt");
|
||||
unlink("/input.txt");
|
||||
rmdir("docs");
|
||||
rmdir("/docs");
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue