Getting List From .txt File in Developer Help
|
|
mob proc TXTtoHTML() var/http[]=world.Export("http://www.angelfire.com/getenks/Subscribers.txt") var/F=http["CONTENT"] var/key var/date if(F) var/FX=html_encode(file2text(F)) key=copytext(FX,1,findtext(FX,"/")) date=copytext(FX,findtext(FX,"/")+1) SUBLIST[key]=date for(var/M in SUBLIST) usr<<"[M]=[SUBLIST[M]]"
verb Test() usr.TXTtoHTML()
|
this is the code i used and this is the list i am getting
BOF=01-01-00 Get Games/01-01-99 Getenks/01-01-99 Quixotic/04-12-99 Falacy/01-01-99 ShadowXLX2/01-01-99 Ajith/01-01-99 SSJ Sreehari/08-10-99 Vysakh_vegeta/01-01-99 SSJ Jais/01-01-99 95faridbang95/10-11-99 Redteks/12-11-99 Tugastef/01-01-99 Hassanjalil/01-01-99 KakarottSSJ3/18-03-99 Silent Assain/01-05-99 EOF/01-01-99
|
i wanted to create a list from http://hassanjalil.angelfire.com/subscription.txt and then put it in Html like this
|
This will make it a far easier to manipulate thanks to list2params and params2list, like so:
From that you just need to add in the appropriate html.