To main page | Opera Unite HowTo's
/storage/ (in fileio) Storage is the sandboxed folder (called "mount point") that you can write to.
Mounting
Mounting is required as a first step:
var dir = opera.io.filesystem.mountSystemDirectory('storage');
Opening files
Then you can open file like so:
stream = dir.open(dir.resolve('/storage/filename.txt'),
opera.io.filemode.READ);
// or opera.io.filemode.WRITE
For a simpler way, see: file_wrap.js
|