| View previous topic :: View next topic |
| Author |
Message |
sleeplezz Voice
Joined: 04 Jun 2006 Posts: 7
|
Posted: Tue Jun 13, 2006 6:22 am Post subject: Read ascending lines in text file |
|
|
Hi! I'm a newbie on tcl scripting and I like to request a text reader tcl.
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 ? Thanks in advance! |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Tue Jun 13, 2006 6:53 am Post subject: |
|
|
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 |
|
 |
sleeplezz Voice
Joined: 04 Jun 2006 Posts: 7
|
Posted: Tue Jun 13, 2006 5:18 pm Post subject: |
|
|
| 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 |
|
 |
|