Did you know ... Search Documentation:
Foreign access to Prolog IO streams