SWI-Prolog Did You Know Did you know? SWI-Prolog can lazily parse a file Search Documentation:
Predicate write_to_chars/3