The actually order and values of course, depends on what you're using the data for. In this case, I'm using nickname, Pokémon number and Pokémon level. There's no limit to the number of values you have. Next, you implement this script - in an event, for example:
Code:
string=pbDownloadToString("http://www.yoursite.com/test.txt")
data = []
string.each(',') {|s| data.push(s.delete(","))}
Basically, this code downloads the information from the text file (the text file needs to be in UTF-8) and puts it into an array. So in this case, data[0] is "PikaPika", data[1] is "25" and data[2] is "10". This values could be used for anything, really, but if you say, wanted to give the player a Pokémon...
Code:
pbAddForeignPokemon(data[1].to_i,data[2].to_i,_("Previous Owner"),_(data[0]))
In this case, it would give you a level 10 Pikachu, with a nickname "PikaPika". The ".to_i" is added after certain variables to convert strings into integers. In other words, the text string "25", is converted into the number value 25.