Macaulay2 » Documentation
Packages » Macaulay2Doc :: read(File)
next | previous | forward | backward | up | index | toc

read(File) -- read from a file

Synopsis

Description

i1 : f = openInOut "!cat"

o1 = !cat

o1 : File
i2 : isReady f

o2 = false
i3 : f << "hi there" << flush;
i4 : isReady f

o4 = false
i5 : read f

o5 = hi there
i6 : isReady f

o6 = false

See also

Ways to use this method: