I been looking thro the forums and the archive but not sure what I would be looking for in the code.
I have a txt file with lets say 15 lines of info on it. I need a script that would open the file add the lines up close the file then report to the channel
<bot>There are 15 records in total
also i am stuck on how to stripcodes c
i have been going around and around in bllod circles for hours
here is what i am working with.
Code: Select all
proc add {nick uhost hand chan text} {
set database [open ${::db} a+]
set timestamp [clock format [clock seconds]]
set section [lindex $text 6]
puts $database "$timestamp $section"
close $database
}
[code]
I know i have to change the line added to the database but not sure how.
Any help would be great.
Cheers
Quest