%fdopen() function

The %fdopen() function associates a stream with the file.descriptor obtained from an %open(), %dup(), or %creat().

Syntax

stream = (char*)%fdopen(file.descriptor, type)