Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » system facilities » using sockets » isReady(File)
next | previous | forward | backward | up | index | toc

isReady(File) -- whether a file has data available for reading

Description

i1 : f = openInOut "!cat"

o1 = !cat

o1 : File
i2 : isReady f

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

o4 = false

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Macaulay2Doc/ov_files.m2:359:0.