fileno

fileno — creates a file descriptor from a pointer.

Syntax

fileno (file)

		

Arguments

file

A file pointer as returned from open.

Returns

t, if successful, otherwise nil.

Description

This function creates a file descriptor from a file pointer.

See Also

fd_to_file, Referencing Files