How can i make streamreader read a file on internet?

Hello,

How can i make streamreader read a file on internet?

it works just fine:
sr = new StreamReader(Application.dataPath + “/loader.txt”);

but if my file is in internet? I try it :

sr = new StreamReader(“http://www.biosphera.com.br/loader.txt”);

and it try to find a directory http://www.biosphera.com.br/loader.txt
Did something like Application.URL exists?

I am not sure it is possible, I think all System.File stuff does not work online. Use www class

ok, i will try it, thanks!

Thank you Nikolay!!! Very helpfull,

just to serve as future reference:

var line : String;
var www : WWW = new WWW (“http://www.biosphera.com.br/loader.txt”);
yield www;
line = www.text;