({{, (RefLink[InputStringPacket, paclet:ref/InputStringPacket])[] 
is a WSTP packet that requests input in string form.}})

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Launch a subsidiary Wolfram Language kernel process:

link=LinkLaunch[First[$CommandLine] <> " -wstp"]

Read the first packet:

LinkRead[link]

Write the packet representing the text "InputString[]" to enter:

LinkWrite[link,EnterTextPacket["InputString[]"]]

Read the (RefLink[InputStringPacket, paclet:ref/InputStringPacket]) expression indicating a prompt for input:

LinkRead[link]

Close the link:

LinkClose[link]

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[WSTP and External Program Communication, paclet:tutorial/WSTPAndExternalProgramCommunicationOverview])}})}})