% From the book % PROLOG PROGRAMMING IN DEPTH % by Michael A. Covington, Donald Nute, and Andre Vellino % (Prentice Hall, 1997). % Copyright 1997 Prentice-Hall, Inc. % For educational use only % File READINT.PL % Reads a line of text as an integer % Requires READSTR.PL :- reconsult('a:readstr.pl'). % use ensure_loaded if available % read_int(-Int) % Reads a line of text as an integer. % Fails if there are any non-digit characters. % *** TO BE WRITTEN!