From the hub, tagged: "I/O"
"Hello, <name>!", the second program improved.
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.
A Very Specific Prolog Warning
This post is external to PrologHubIf 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.