home *** CD-ROM | disk | FTP | other *** search
Prolog Source | 1990-03-26 | 504 b | 25 lines |
- /*
- Copyright (c) 1986, 90 by Prolog Development Center
- */
-
- domains
- file = input
-
- predicates
- inspect_positions
-
- goal
- write("Which file do you want to work with ?"),
- readln(FileName),
- openread(input, FileName),
- inspect_positions.
-
- clauses
- inspect_positions :-
- readdevice(keyboard),
- nl, write("Position No? "),
- readreal(X),
- readdevice(input), filepos(input, X, 0),
- readchar(Y), write("Char is: ",Y),
- inspect_positions.