exist()  fixPerms()

Chapter 5: General Objects and Methods

fixOptns()

Description

Programmatically clears the I/O file object current I/O and write options and sets new permission.

NoteThis method does not perform error checking.

Syntax

fixOptns(int opt);

Argument

Description

opt

The mnemonic associated with the option being set. For any mnemonic not passed in the argument, the option is set to off. To alter multiple options, place a pipe symbol ( | ) between each mnemonic. See Table 5-1 for a list of mnemonics.

Return value

None.

Usage

Table 5-1 lists available mnemonics for the opt argument. Each description corresponds to an option on the user interface screens.

Table 5-1: opt argument mnemonics

Mnemonic

Description

RDONLY

Read Only

WRONLY

Write Only

RDWR

Read and Write Only

APPEND

Append

TRUNC

Truncate

CREAT

Create

EXCL

Exclusive

Pointer to object

Object

piof->fixOptns(CREAT | TRUNC);

my_iofobj.fixOptnjs(RDWR);





Copyright © 2005. Sybase Inc. All rights reserved. fixPerms()

View this book as PDF