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.

Reading a Random line from a text file.

Old posts that have not been replied to for several years.
Locked
S
SkyRyu

Reading a Random line from a text file.

Post by SkyRyu »

i'd like to know how i can reproduce the mirc function $read(file.txt) that takes a random line from the specified text file....

Can someone help me? i'd like my bot to answer to a public command saying a Sentence created by various random lines text file...

I thank you from now for the help....
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

This question has been asked about a million times, so I've added it to the Tcl FAQ forum under "Basic File Operations." Please read that and let me know if the description is clear enough and all that.
S
SkyRyu

Post by SkyRyu »

Yes, it's all clear.. sorry again for this topic, and thanks a lot :wink:
Locked