YAP support for InputOutput

The main core features of the Prolog engine.

Some of the Input/Output predicates described below will in certain conditions provide error messages and abort only if the file_errors flag is set.

If this flag is cleared the same predicates will just fail. Details on setting and clearing this flag are given under 7.7.