module Fromonto: sig
.. end
Redirecting stdin and stdout.
val from_file : (unit -> unit) -> string -> unit
from_file function filename
calls function with stdin
temporary redirected from the specified file. If function
raises an exception, stdin
is reset to its previous value
before the exception is raised again.
val onto_file : (unit -> unit) -> string -> unit
onto_file function filename
calls function with stdout
temporary redirected to the specified file. If function
raises an exception, stdout
is reset to its previous value
before the exception is raised again.