Module GenClone.IO
val with_in : ?mode:int -> ?flags:Stdlib.open_flag list -> string -> (char t -> 'a) -> 'aread filename fopensfilenameand callsf g, wheregis a clonable generator of characters from the file. It can be cloned by callingg#save(which saves the position in the file), and used withg#next. Distinct clones ofgshouldn't be used at the same time (otherwiseFailure _will be raised). Both the generator and save points are only valid within the scope in whichfis called.