How to resolve the algorithm Delete a file step by step in the Plain English programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Delete a file step by step in the Plain English programming language

Table of Contents

Problem Statement

Delete a file called "input.txt" and delete a directory called "docs". This should be done twice: once "here", i.e. in the current working directory and once in the filesystem root.

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Delete a file step by step in the Plain English programming language

Source code in the plain programming language

To run:
Start up.
\ In the current working directory
Destroy ".\input.txt" in the file system.
Destroy ".\docs\" in the file system.
\ In the filesystem root
Destroy "C:\input.txt" in the file system.
Destroy "C:\docs\" in the file system.
Shut down.


  

You may also check:How to resolve the algorithm FizzBuzz step by step in the Plain English programming language
You may also check:How to resolve the algorithm Loops/While step by step in the Plain English programming language
You may also check:How to resolve the algorithm Gapful numbers step by step in the Plain English programming language
You may also check:How to resolve the algorithm String append step by step in the Plain English programming language
You may also check:How to resolve the algorithm Even or odd step by step in the Plain English programming language