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