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

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

Synopsis

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: