Reading Text in Webplayer

I understand that you can’t use StreamReader in a webplayer for security reasons. I also understand that the replacement for this is WWW.

My question is, is there some way of testing this code without actually building the webplayer?

I still have a ways to go before this program is finished, and I don’t want to have to constantly be creating a webplayer build and uploading it to my webserver just to test it out.

I thought you could send a www class the file protocol and it would still read it from there. I’m not sure though but i thought i heard that around the grapevine…

I’m using Application.dataPath, but I’m getting this error: :frowning:

You are trying to load data from a www stream which had the following error when downloading.
Could not resolve host: C:; Host not found

You can’t access local files through webplayers. Not even using www class with “file://”.

I wasn’t trying to. I was trying to use WWW to access local files while offline so I can test the code using WWW without having to build the webplayer. I did solve this by adding “file://” to the beginning of the path.

Thanks!

nice! i’m glad it worked for you.