This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
b
bigmo
Post
by bigmo » Wed Nov 20, 2002 6:01 am
hi everyone!
how can i write an array in a file 4 getting it back after restarting the bot?
thx4help
mortician
Voice
Posts: 37 Joined: Sun Sep 22, 2002 6:35 pm
Location: Tsjakamaka
Contact:
Post
by mortician » Wed Nov 20, 2002 6:06 am
b
bigmo
Post
by bigmo » Wed Nov 20, 2002 6:29 am
yeah..thx,
i found that before, but this is not what i lookin 4.
caus:
i have an array $array(<hostmark>) => nick
and i want 2 write the array itself in the file and not only the nicks..
how does this work?
THX
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Wed Nov 20, 2002 8:13 am
See the "array" command documentation.
It will discribe how you can obtain a list of key, value pairs, that can be stored in a file.
I will also tell you how you can use a key, value pair list to create an array.
With these, you can create backup, and restore arrays from files.