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.

Search found 3 matches

by SCR34M3R
Thu May 14, 2009 3:59 am
Forum: Scripting Help
Topic: Max 10 lines in file
Replies: 6
Views: 5116

awesome, Works a treat.
Thanks heaps guys
by SCR34M3R
Wed May 13, 2009 7:04 am
Forum: Scripting Help
Topic: Max 10 lines in file
Replies: 6
Views: 5116

its the sitelist.tcl which i have edited a bit to suit what i need. the add section is ## Operation Procedures proc prc_addsite {site} { global sitefile if {[catch {open $sitefile a} fd]} { return 0 } else { puts $fd $site close $fd return 1 } }
by SCR34M3R
Tue May 12, 2009 3:51 am
Forum: Scripting Help
Topic: Max 10 lines in file
Replies: 6
Views: 5116

Max 10 lines in file

hay guys pretty new to tcl scripting, But got myself a add,del and list script going, but i want it so when i do !add text, it checks the file and deletes the oldest entry into the file. So that there is only 10 lines in the file. So Add entry to Top, Remove last line. How would i go about doing thi...