Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class opera.io.filemode

    Object
       |
       +--opera.io.filemode

class opera.io.filemode

File mode constants that can be used with File.open()
Defined in file-io.js

Field Summary
`int` | `APPEND` Open the file for appending.
`int` | `READ` Open the file for reading.
`int` | `UPDATE` Open the file for reading and writing.
`int` | `WRITE` Open the file for writing.

Constructor Summary
`opera.io.filemode()` This class has no public constructor.

Field Detail

### APPEND

    int APPEND

Open the file for appending.

This will preserve the contents of the file and write from the end of the file. If the File does not exist, it is immediately created.

The value of the constant is 4.

### READ

    int READ

Open the file for reading. The value of the constant is 1.

### UPDATE

    int UPDATE

Open the file for reading and writing. This is equivalent to r+. The value of the constant is 8.

### WRITE

    int WRITE

Open the file for writing.

This will empty the file first. If the File does not exist, it is immediately created.

The value of the constant is 2.

Constructor Detail

### opera.io.filemode

    opera.io.filemode()

This class has no public constructor.

Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Fri Jan 29 17:08:19 2010