Anonymous user
Check that file exists: Difference between revisions
Provided an F# implementation
(adding GAP) |
(Provided an F# implementation) |
||
Line 349:
require(file.isDirectory(), fn { `$file is not a directory!` })
}</lang>
=={{header|F_Sharp|F#}}==
<lang fsharp>open System.IO
File.Exists("input.txt")
Directory.Exists("docs")
File.Exists("/input.txt")
Directory.Exists(@"\docs")</lang>
=={{header|Factor}}==
|