fd_to_file

fd_to_file — creates a file pointer from a descriptor.

Syntax

fd_to_file (fd, mode)

		

Arguments

fd

A file descriptor as returned from fd_open.

mode

A string indicating the mode for the file: "r" for read-only, "w" for writable, "a" for append.

Returns

t, if successful, otherwise nil.

Description

This function creates a file pointer from a file descriptor.

See Also

fileno, Referencing Files