Anonymous user
Delete a file: Difference between revisions
added Go
(added batch file) |
(added Go) |
||
Line 186:
CLOSE (UNIT=5, STATUS="DELETE")</lang>
=={{header|Go}}==
<lang go>package main
import "os"
func main() {
os.Remove("input.txt")
os.Remove("/input.txt")
os.Remove("docs")
os.Remove("/docs")
// recursively removes contents:
os.RemoveAll("docs")
os.RemoveAll("/docs")
}</lang>
=={{header|Haskell}}==
|