Module OS.File
File operations.
Famous file paths
val null : fpath
null
represents a file on the OS that discards all writes and returns end of file on reads.
Existence and deletion
val exists : fpath -> bool result
exists file
istrue
iffile
is a regular in the file system and false otherwise. Symbolic links are followed.
Folding over file hierarchies
Reading and writing
val read : fpath -> string result
read file
isfile
's contents. Iffile
isdash
reads fromPervasives
.stdin and the channel is not closed when the function returns.