egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Read ascending lines in text file

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
sleeplezz
Voice


Joined: 04 Jun 2006
Posts: 7

PostPosted: Tue Jun 13, 2006 6:22 am    Post subject: Read ascending lines in text file Reply with quote

Hi! I'm a newbie on tcl scripting and I like to request a text reader tcl. Smile

I need a tcl to read every lines in a text file then post it to a channel every x seconds. But it should be read ascending ( not random ) from the first line to the next lines until the end of file then doing re-reading if tcl finished read a whole lines in that file.

My text file contain lines like this ...

Quote:
...
- June, 2th 2006 - Our site was updated, so pls check it out guys!
- June, 3rd 2006 - Team agreed to make a dinner, pls contact Jim for info.
- June, 4th 2006 - Carey b'day is on next Sunday, don't forget to attend it!
...


Got an idea to help me ? Smile Thanks in advance!
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Tue Jun 13, 2006 6:53 am    Post subject: Reply with quote

You want to be to post each new line since it last checked? Or always post the whole file? And where is the problem about random? Search the forums, there are plenty solutions to split \n and foreach each line... even with increasing timers to delay output addionally to puthelp queue.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
sleeplezz
Voice


Joined: 04 Jun 2006
Posts: 7

PostPosted: Tue Jun 13, 2006 5:18 pm    Post subject: Reply with quote

It will post a whole lines on file. I found many post about text file reading... I need to checked all of them. Any suggestions are welcome. Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber