Legend:
Library
Module
Module type
Parameter
Class
Class type
IO Utils
Simple utilities to deal with basic Input/Output tasks in a resource-safe way. For advanced IO tasks, the user is advised to use something like Lwt or Async, that are far more comprehensive. This module depends on CCGen.
since 0.6
NOTE this was formerly a monadic IO module. The old module is now in containers.advanced under the name CCMonadIO.
Examples:
obtain the list of lines of a file:
# let l = CCIO.(with_in "/tmp/some_file" read_lines);;
Open an input file with the given optional flag list, calls the function on the input channel. When the function raises or returns, the channel is closed.