EndOfBuffer
is a symbol that represents the end of currently available data in the buffer for a process or stream.
Examples
Basic Examples (2)
Start the system shell process:
Write some commands into the shell:
Read the partial output from the process even before it is finished. ReadString waits until the system shell finishes unless EndOfBuffer is used:
Start the system shell process:
Read all initial output; depending on the operating system and shell, this can result in an empty string:
Write the "date" command in the shell:
Write an "echo" command in the shell:
Write another command on the shell, then exit; ReadString waits until the process finishes by default:
Text
Wolfram Research (2014), EndOfBuffer, Wolfram Language function, https://reference.wolfram.com/language/ref/EndOfBuffer.html.
CMS
Wolfram Language. 2014. "EndOfBuffer." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EndOfBuffer.html.
APA
Wolfram Language. (2014). EndOfBuffer. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EndOfBuffer.html