readFileF

File system access

Types

readFileF :: F String (String, Either D_IOError String)

Description

readFileF accepts a file name as input, reads the file, and outputs the contents.

Input

Path name to the file.

Output

Pair of the path name and either Right content if the read was successful, or Left err if an error occurred.

See Also

Reading directories: readDirF.

Writing files: writeFileF.

Performing other Haskell 1.2 IO operations: haskellIOF et al.