DOSCreate

Creates a file in the DOS partition

Local Servers:blocking
Remote Servers:N/A
NetWare Server:3.x, 4.x, 5.x, 6.x
Platform:NLM
Service:DOS Partition

Syntax

  #include <nwdos.h>  
   
  int DOSCreate  (  
     const char  *fileName,   
     int         *handle);
  

Parameters

fileName
(IN) Points to the DOS filename of the file to be created (any legal DOS path name is allowed).
handle
(OUT) Points to a file handle which provides access to the DOS file.

Return Values

Decimal

Hex

Constant

0

(0x00)

ESUCCESS

DOSCode

UNSUCCESSFUL

Remarks

If the file does not exist, DOSCreate creates it with read/write access. If the file does exist, it is truncated to zero bytes in length.

See Also

DOSOpen, DOSPresent