InstallShield 2018 » InstallScript Language Reference
The OpenFileMode function sets the mode of the file you want to open or create. The argument you pass as the parameter nMode sets the file mode to one of the following:
• | ANSI or Unicode text file in append mode. |
• | ANSI or Unicode text file in read-only mode. |
• | Binary file in read/write mode. |
• | Binary file in read-only mode. |
After you set the file mode, call OpenFile to open an existing file or CreateFile to create and open a new file.
Syntax
OpenFileMode ( nMode );
Parameters
Parameter |
Description |
|||||||||||||||
nMode |
Specifies which mode to use to open a file. Pass one of the following predefined constants in this parameter:
|
Return Values
Return Value |
Description |
0 |
Indicates that the function successfully set the file mode. |
< 0 |
Indicates that the function was unable to set the file mode. |
See Also
InstallShield 2018 Help LibrarySeptember 2018 |
Copyright Information | Flexera |