How to write and load text files in Streaming assets folder WebGL?

Hi,
I want to save game data in webgl. I don’t want to save using playerprefs. I want o save data as a binary file and store it in users local drive and load data from there. This is possible in standalone build and in editor… But When I export to WebGL the file not allowed to save in users local drive.

Please suggest a way to do saving in local drive webgl.

Are you running your index.html page from a Web server, or are you trying to launch it directly?

When you choose Build and Run, and when you test your project directly in the editor, Unity creates a temporary server for you.

You can use any of the server software (easy options are WAMP, XAMPP, MAMP) to set up a Web server to test your WebGL projects.