Syntax
VM_FS_HANDLE vm_fs_open(
    VMCWSTR filename, 
    VM_FS_MODE mode, 
    VMBOOL is_binary
);
ContentsIndex
PreviousUpNext
vm_fs_open
Syntax
VM_FS_HANDLE vm_fs_open(
    VMCWSTR filename, 
    VM_FS_MODE mode, 
    VMBOOL is_binary
);
Description

Opens a file. It opens the file as a binary file, if the is_binary is VM_TRUE. If the is_binary is VM_FALSE, it opens the file as an ASCII file.

Parameters
Parameters 
Description 
VMCWSTR filename 
[IN] The name of the file to be opened. It is the full path encoded in UCS-2. 
VM_FS_MODE mode 
[IN] Specifies the mode to open the file. 
VMBOOL is_binary 
[IN] Specifies if the file to be opened as a binary or an ASCII file. 
Returns

The file handle is returned, if the open operation is successful. If fails, 

a negative integer is returned. Refer to the VM_FS_RESULT for error code, 

if it fails.

File

vmfs.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.