From the hub, tagged: "I/O"
After "Hello, world!" it's typical to write a program that asks the user's name and greets them. In this post we learn how to do this in SWI-Prolog without requiring a full-stop.
If you're trying to pass an input file stream from Prolog to a foreign function, this may be useful. For the rest of you, hopefully it's at least somewhat interesting.