Delete a file: Difference between revisions

Content added Content deleted
(add task to ARM64 assembly Raspberry Pi)
(Added Wren)
Line 1,577: Line 1,577:
IO.Directory.Delete(IO.Path.DirectorySeparatorChar & "docs")
IO.Directory.Delete(IO.Path.DirectorySeparatorChar & "docs")
IO.File.Delete(IO.Path.DirectorySeparatorChar & "output.txt")</lang>
IO.File.Delete(IO.Path.DirectorySeparatorChar & "output.txt")</lang>

=={{header|Wren}}==
To remove a file from the root, assuming you have the necessary privileges, just change "input.txt" to "/input.txt" in the following script.

Wren does not currently support the removal of directories.
<lang ecmascript>import "io" for File

File.delete("input.txt")

// check it worked
System.print(File.exists("input.txt"))</lang>

{{out}}
<pre>
false
</pre>


=={{header|X86 Assembly}}==
=={{header|X86 Assembly}}==