readAll

Synopsis

@ readAll([$handle])

reads all lines of text from the specified handle and places them into an array

Parameters

$handle - the handle to read from

Returns

a sleep array containing all of the lines of text read

Examples

$handle = openf("/etc/passwd"); @data = readAll($handle); closef($handle); println("Number of entries: " . size(@data));

Number of entries: 37

See Also