% small example demonstrating the read/1 predicate
% last modified: 03-24-11
% avoid entering something starting with an uppercase letter;
% it seems to unify to a hole variable...!
% (Prolog seems to assume the type of what is entered based
% on how it is typed...)
tryThis :- writeln('Type in something followed by a period: '),
read(Something),
write('You typed in: '),
writeln(Something).