How to read a file

Hi all,

I am reading a text file in the program and taking some input from that file.

Now, i want to change that input at run time.

When i take a build of that game, the changes done to the text file are not affecting the game.

Where to keep that text file so that the changes in the file should affect the game.

Please help me i am desperate to know that…

I believe that you should look up WWW in the resource and open the file using a file:// prefix

If you’re reading from the hard drive, you can use System.IO.File.ReadAllText. If you’re reading from a web URL, you can use WWW. If you’re using a web-player build, you cannot read from the hard drive.