Creates a file
#include <nwfileng.h>
int FEcreat (
char *name,
int permission,
int flagBits);
(IN) Points to the name of the file to be opened.
(IN) Specifies the file permission (if the file is being created).
(IN) Specifies the special flags that allow more file flexibility.
When there is no error opening the file, the function returns a file handle. When an error occurs, it returns a value of -1, and errno and NetWareErrno are set to the appropriate error codes. See Return Values for C for more information.
This function also works on the DOS partition.
This is a special version of creat.
If the specified file does not exist, FEcreat creates the file with the specified file permission.
The permission mode is established as a combination of bits found in the SYS\STAT.H file. The following bits are defined:
A value of 0 can be specified to indicate that the file is readable and writeable.
The flag bits can be found in nwfattr.h and are defined as follows: