ReadProgramString()

Syntax

Result$ = ReadProgramString(Program)
Description
Reads a line from the output (stdout) of the given program. The program must have been started with RunProgram() and the #PB_Program_Read flag.

Note: This function waits until there is data to read from the program. To prevent this wait, AvailableProgramOutput() can be used first to check if there is something to read. This function also waits until a full line of output is available. If not line-based or raw output is to be read, ReadProgramData() can be used.

Supported OS

All

<- ReadProgramError() - Process Index - RemoveEnvironmentVariable() ->