html5 and filestream

Monkey Targets Forums/HTML5/html5 and filestream

DiabloV(Posted 2014) [#1]
Hello there.

I would like to know how to use the file management (read and write data) in html5.

Aoccdrnig filetest.monkey example, "File streams are not supported on this target".


Beaker(Posted 2014) [#2]
The short answer is you can't.

I did manage to bodge together file reading and writing in html5 for a project but it's not pretty and there are some caveats, including:
File writing must be triggered by a user click of a native button.
You can't control the default file name when popping up a save file dialog box.

So, it can be done with some work.


DiabloV(Posted 2014) [#3]
It there's probably a native possibility, right?

I do not see design an application and can not suvegarder / load data.


Beaker(Posted 2014) [#4]
Look here:
http://www.html5rocks.com/en/tutorials/file/filesystem/


DiabloV(Posted 2014) [#5]
I understand nothing, it's not monkey?