##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: September, 2016 # Modified: 2016-10-03/22:39-0400 ##+ # # chmod.icn, Demonstrate chmod, the file access permission function # procedure main() # set "other" read permissions # others outside owner (u) and group (g) file := "chmod.icn" write("chmod call: ", image(chmod(file, "o+r"))) write("mode of ", file, " ", stat(file).mode) end