Like with_output_to but for memory files
with_output_to
?- with_memory_file(string(String), write, [Stream]>>write(Stream, foo)). String = "foo".
See LICENSE