Delete a file: Difference between revisions

Content added Content deleted
No edit summary
m (OCaml: rmdir has been added to Sys)
Line 1,250: Line 1,250:


<syntaxhighlight lang="ocaml">Sys.remove "input.txt";;
<syntaxhighlight lang="ocaml">Sys.remove "input.txt";;
Sys.remove "/input.txt";;</syntaxhighlight>
Sys.remove "/input.txt";;
Sys.rmdir "docs";;
Sys.rmdir "/docs";;</syntaxhighlight>


with the Unix library:
with the Unix library: