read/1

"read(- T" ) is iso

Reads the next term from the current input stream, and unifies it with T. The term must be followed by a dot (.) and any blank-character as previously defined. The syntax of the term must match the current declarations for operators (see op). If the end-of-stream is reached, T is unified with the atom end_of_file. Further reads from of the same stream may cause an error failure (see open_51 "open/3").