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

isOutputFile(File) -- whether a file is open for output

Description

i1 : f = "test-file" << "hi there"

o1 = test-file

o1 : File
i2 : isOutputFile f

o2 = true
i3 : close f

o3 = test-file

o3 : File
i4 : isOutputFile f

o4 = false
i5 : get "test-file"

o5 = hi there
i6 : removeFile "test-file"

See also

Ways to use this method:


The source of this document is in Macaulay2Doc/ov_system.m2:589:0.