next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: fileMode(ZZ,String)

fileMode(ZZ,String) -- set file mode

Synopsis

Description

i1 : fn = temporaryFileName()

o1 = /tmp/M2-12378-0/0
i2 : fn << "hi there" << close

o2 = /tmp/M2-12378-0/0

o2 : File
i3 : m = fileMode fn

o3 = 420
i4 : fileMode(m|7,fn)
i5 : fileMode fn

o5 = 423
i6 : removeFile fn