Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Delete-a-file/MATLAB/delete-a-file-1.m
Normal file
4
Task/Delete-a-file/MATLAB/delete-a-file-1.m
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
delete('input.txt'); % delete local file input.txt
|
||||
delete('/input.txt'); % delete file /input.txt
|
||||
rmdir('docs'); % remove local directory docs
|
||||
rmdir('/docs'); % remove directory /docs
|
||||
12
Task/Delete-a-file/MATLAB/delete-a-file-2.m
Normal file
12
Task/Delete-a-file/MATLAB/delete-a-file-2.m
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
if system('rm input.txt') == 0
|
||||
disp('input.txt removed')
|
||||
end
|
||||
if system('rm /input.txt') == 0
|
||||
disp('/input.txt removed')
|
||||
end
|
||||
if system('rmdir docs') == 0
|
||||
disp('docs removed')
|
||||
end
|
||||
if system('rmdir /docs') == 0
|
||||
disp('/docs removed')
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue