module Fileutil: sig end
This module provides various helpful utilities for deailing with files.
Author(s): Copyright (C) 2004 John Goerzen
File name utilities
|
val abspath : ?startdir:string -> string -> string
abspath filename
returns the absolute path of filename.
If startdir is given, it is used instead of the current working directory
to work out relative paths.
This function works algorithmically, rather than via changing directories,
and as such does not resolve symlinks or die if bad paths are given.
File reading
|
val getfirstline : string -> string
val getlines : string -> string list