uni-posixutil-2.2.0.0: Posix utilities for the uniform workbench

Posixutil.CopyFile

Description

This contains functions for copying to and from files

Synopsis

Documentation

copyStringToFileCheck :: String -> FilePath -> IO (WithError ())Source

Write to a file, catching certain errors. (At the moment this is not very helpful, returning messages like "system error").

copyFileToString :: FilePath -> IO StringSource

Reads in a file to a String. NB - differs from readFile in that this is done instantly, so we don't have to worry about semi-closed handles hanging around.

copyFileToStringCheck :: FilePath -> IO (WithError String)Source

Read in a file, catching certain errors