- Home /
Read a text file from paste bin.
I need to read a text file that i made on pate bin. I need to do this because i want to be able to check if the game is the latest version and get a list of strings for a random tip to be displayed.
Answer by Xarbrough · Jun 22, 2015 at 12:44 AM
What does paste bin got to do with the text file? Why do you need to create it there? Wouldn't you define the latest version of your game where you build it? Within Unity?
If you just want to read a file, you can use a StreamReader:
You can simple read the first line and let it be the version for example, then all other lines are just read and stored in an array or list.
I wanted to be able to know from within the game if its the latest version... and either way i figured it out.
So what was the solution? You didn't end up reading a text file?
I used the solution that someone else used for reading files located online and then just used the raw url from pastebin.