SWI-Prolog Did You Know Did you know? print_term/2 can print large terms in readable format Search Documentation:
Predicate read_from_chars/2