next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
home
read(File,ZZ) -- read from a file
Synopsis
Usage:
read(f,n)
Function:
read
Inputs:
f
,
a
file
, a file
n
,
an
integer
, an integer specifying the maximum number of bytes to read
Outputs:
a
string
, a string obtained by reading from
f
Description
Input files are buffered, so the current contents of the buffer are returned if the buffer is not empty, otherwise reading from the file is attempted first.
See also
openIn
-- open an input file
get
-- get the contents of a file
isReady
-- whether a file has data available for reading