|
By patvdv at 26 Feb 2008 - 21:57
|
|
pipe.read()
Syntax
long pipe.read( ref string buffer(1024), long nr_of_bytes, long pipe_id )
Description
This reads a specified number of bytes from the specified pipe.
Arguments
|
buffer
|
This stores the characters read from the pipe.
|
|
nr_of_bytes
|
This specifies the maximum number of bytes to be read from the pipe. The function stops reading when it has read the number of bytes specified by this argument or when it reaches the end of the file, whichever comes first.
|
|
pipe_id
|
The pipe ID, as returned by pipe.open().
|
Return values
- >0 : the number of bytes read
- 0 : end-of-file
- -1 : error; most probably no connected stream on pipe_id
Context
Bshell function.
Related topics
|