|To main page | Opera Unite HowTo's|
/storage/ (in fileio)
Storage is the sandboxed folder (called "mount point") that you can write to.
MountingMounting is required as a first step:
var dir = opera.io.filesystem.mountSystemDirectory('storage');
Opening filesThen 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