next up previous
Next: Consulting Files Up: Files and I/O Previous: Writing to file

Reading Characters

get0(X)
get(X)

put(X)

copy_sentence(Input,Output) :-
 see(Input),
 tell(Output),
 copy,
 seen,
 told.

copy :-
 get0(Ch),
 put(Ch),
 treat([Ch]).

treat(".").
treat( _) :-
 copy.



Omer F Rana
Mon Mar 17 12:47:04 GMT 1997