X is an atom representing the name of the file to open. Y is an atom that should have either the value read to open the file for reading from or write to open the file for writing to. Z is instantiated by open to a special term that must be referred to in subsequent commands in order to access the stream.
Examples
See Input and Output