PickBASIC / FlashBASIC
%chmod() function
.mdThe %chmod() function changes the mode of the file str to the value specified in mode.
For Windows: Not Supported
Syntax
var = %chmod(str, mode)
Description
The valid values for mode are in the include file: mode.h. Combinations of the modes are obtained by adding several elementary mode values together.
Example(s)
include dm,bp,unix.h mode.h filename = "/tmp/myfile" n=%chmod(filename,S$IRUSR+S$IWUSR+S$IRGRP+S$IWGRP)