dio_open

dio_open -- Opens a new filename with specified permissions of flags and creation permissions of mode

Description

resource dio_open ( string filename, int flags [, int mode])

dio_open( ) opens a file and returns a new file descriptor for it , or -1 if any error occurred .

The flags parameter can also include any combination of the following flags: