How to save a file (txt) from a html5 buid? and where does it save it?

I use File.open("user://file.txt", File.WRITE), but from a html5 build it doesn't save anything


Tags :

Best Answer

  • SolarLuneSolarLune Posts: 37
    Accepted Answer

    Not sure. As far as I know, browsers can't access the host file-system directly for security reasons, so they are always sandboxed. Some engines support saving files for HTML5 builds, but exactly how depends on the engine. You might do well to ask on IRC for more information.

Answers

  • SolarLuneSolarLune Posts: 37Member
    Accepted Answer

    Not sure. As far as I know, browsers can't access the host file-system directly for security reasons, so they are always sandboxed. Some engines support saving files for HTML5 builds, but exactly how depends on the engine. You might do well to ask on IRC for more information.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file