%chmod() Function

For Windows: Not Supported

The %chmod() function changes the mode of the file str to the value specified in mode.

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)

See Also

FlashBASIC C Functions Overview

cfunction Statement

FlashBASIC C Functions Overview

not() Function

rem() Function

Statements and Functions

\= Assignment Operator