¤ readFileF

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.