Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » system facilities » file manipulation » fileMode » fileMode(ZZ,String)
next | previous | forward | backward | up | index | toc

fileMode(ZZ,String) -- set file mode

Description

i1 : fn = temporaryFileName()

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

o2 = /tmp/M2-31067-0/0

o2 : File
i3 : m = fileMode fn

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

o5 = 423
i6 : removeFile fn

Ways to use this method:


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