({{, (RefLink[EnterTextPacket, paclet:ref/EnterTextPacket])[string] 
is a WSTP packet that requests the parsing and evaluation of string as an expression.}})

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 an (RefLink[EnterTextPacket, paclet:ref/EnterTextPacket]) packet representing the text to enter:

LinkWrite[link,EnterTextPacket["10!"]]

Read the resulting packets:

LinkRead[link]

LinkRead[link]

Close the link:

LinkClose[link]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[ReturnTextPacket, paclet:ref/ReturnTextPacket])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[WSTP and External Program Communication, paclet:tutorial/WSTPAndExternalProgramCommunicationOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Mac OS X), paclet:tutorial/WSTPDeveloperGuide-MacintoshOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Unix and Linux), paclet:tutorial/WSTPDeveloperGuide-UnixOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Windows), paclet:tutorial/WSTPDeveloperGuide-WindowsOverview])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[WSTP Packets, paclet:guide/WSTPPackets])}, {▪(RefLinkPlain[WSTP Expression Packet Handling, paclet:guide/WSTPExpressionPacketHandling])}, {▪(RefLinkPlain[WSTP Wolfram Language Functions, paclet:guide/WSTPWolframLanguageFunctions])}})}})