<html><head><title>ReadProgramString</title></head><body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000"><font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">ReadProgramString()</font></b></p><p><b>Syntax</b></p><blockquote>Result$ = <font color="#3A3966"><b>ReadProgramString</b></font>(Program [, Flags])</blockquote></blockquote><b>Description</b><br><blockquote>Reads a line from the output (stdout) of the given program.This function waits until there is data available to read from the program. To prevent this wait,<a href="availableprogramoutput.html">AvailableProgramOutput()</a> may be used first to check if there issomething to read. This function also waits until a full line of output is available. If not line-basedor raw output is to be read, <a href="readprogramdata.html">ReadProgramData()</a> may be used.</blockquote><p><b>Parameters</b></p><blockquote><style type="text/css">table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }</style><table width="90%" class="parameters"><tr><td width="10%"><i>Program</i></td><td width="90%">The program to use. It must have been started before with <a href="runprogram.html">RunProgram()</a> and the <font color="#924B72">#PB_Program_Read</font> flag.</td></tr><tr><td><i>Flags (optional)</i></td><td>The string format to use when reading the output.The default format can be affected with the <font color="#924B72">#PB_Program_Ascii</font>, <font color="#924B72">#PB_Program_Unicode</font> and<font color="#924B72">#PB_Program_UTF8</font> flags for <a href="runprogram.html">RunProgram()</a>.This can be one of the following values:<pre><font face="Courier New, Courier, mono"size="2"> <font color="#924B72">#PB_Ascii</font> : Reads the output as ascii (default in ASCII mode)<font color="#924B72">#PB_UTF8</font> : Reads the output as UTF8 (default in unicode mode)<font color="#924B72">#PB_Unicode</font>: Reads the output as <a href="../reference/unicode.html">unicode</a></font></pre></td></tr></table></blockquote><p><b>Return value</b></p><blockquote>A string created from program output.</blockquote><p><b>See Also</b></p><blockquote><a href="readprogramdata.html">ReadProgramData()</a></Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=readprogramerror.html>ReadProgramError()</a> - <a href="index.html">Process Index</a> - <a href="removeenvironmentvariable.html">RemoveEnvironmentVariable()</a> -><br><br></body></html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型