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.

array --> file -back-> array

Old posts that have not been replied to for several years.
Locked
b
bigmo

array --> file -back-> array

Post by bigmo »

hi everyone!
how can i write an array in a file 4 getting it back after restarting the bot?
thx4help :)
m
mortician
Voice
Posts: 37
Joined: Sun Sep 22, 2002 6:35 pm
Location: Tsjakamaka
Contact:

Post by mortician »

b
bigmo

Post by bigmo »

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
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

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.
Locked