Did you know ... Search Documentation:
Predicate open_output/4
 open_output(+Spec, +Encoding, -Stream, -Cleanup) is det[private]
Open output Spec, returning a stream using Encoding.
Arguments:
Cleanup- is a goal that must be used to revert the side effects of open_output/4.