read(File,ZZ) -- read from a file
- Function: read
-
- Usage:
read(f,n)
- 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
The source of this document is in Macaulay2Doc/ov_system.m2:315:0.