ispipe - returns whether file is a pipe to an external executable
file.ispipe()
On some operating systems, OADL supports read and write pipes to
external executables. This is done via the new
File syntax, with a "p" as the first character
of the mode. The ispipe() intrinsic method
queries whether the file was created with the "p"
mode.
Note that pipes are read-only or write-only; bidirectional pipes are not supported.
true if file was created with the
"p" mode, and false otherwise.
ArgCheck if arguments are specified
TypeCheck if file is not a
File
AccessCheck if
file is closed
if (!file.ispipe()) {
fseek(file, 0, SEEK_END);
}