Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Delete-a-file/Free-Pascal/delete-a-file.pas
Normal file
18
Task/Delete-a-file/Free-Pascal/delete-a-file.pas
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
program deletion(input, output, stdErr);
|
||||
const
|
||||
rootDirectory = '/'; // might have to be altered for other platforms
|
||||
inputTextFilename = 'input.txt';
|
||||
docsFilename = 'docs';
|
||||
var
|
||||
fd: file;
|
||||
begin
|
||||
assign(fd, inputTextFilename);
|
||||
erase(fd);
|
||||
|
||||
rmDir(docsFilename);
|
||||
|
||||
assign(fd, rootDirectory + inputTextFilename);
|
||||
erase(fd);
|
||||
|
||||
rmDir(rootDirectory + docsFilename);
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue