ID:273254
 
mob/verb/View_Subscribers()
var/motd_doca = {"

<center><body bgcolor=darkblue><table bgcolor=orange border=1><tr><td colspan=2><center><b>Subscriber List

</b><br>(I Didnt Added) Total Subscribers<tr>

<td>Current Date<td>(I Didnt Added)<tr>

<td><b>Key<td><center><b>Expires<tr>


<td>Revolution Gohan <td>24-12-99<tr>
"}

src << browse(motd_doca,"size=500x550,window=SubList")


Hello, Anyone knows how to make a List Based on a .txt file in a FTP. Like if you Add a Subscriber it appears in this list without editing it.
Look up the params2list and text2file procs.
In response to Spunky_Girl
Yes, i readed it today, but i dont undestand That of params2list.
In response to Revolution Gohan
You should also look up the FTP() and file() procs. :)
Here's one idea.
proc
text2list(t)
/*
The functionality here depends on your text file format.
It should return a /list object.

The simplest format would be a&b&c&d, in which case
you could just call params2list(t).
*/

return params2list(t) // simple

file2list(f)
var/t = file2text(f)
return text2list(t)

mob/verb/generate_list(fname="file.txt" as text)
set desc = "(filename) Generate a text-file list with the given filename."
if(!fexists(fname))
text2file("1&2&3", fname)
usr << "file created"
else
usr << "file already exists"

mob/verb/load_list()
var/f = input("Select a file") as null|file
if(f)
var/list/l = file2list(f)
if(l)
usr << "The list in [f] has [l.len] [l.len==1?"element":"elements"]:"
for(var/elem in l)
usr << "- [elem]"