Hello,
Is it possible to remove 1 line in a txt file ?
With the name Fujin, or something like that.
Can you show me how ?
If you know some TCL, then the info found here might help:l.kleijn wrote:Hello,
Is it possible to remove 1 line in a txt file ?
...
It worked. Thanks.If you know some TCL, then the info found here might help:
http://forum.egghelp.org/viewtopic.php?t=6885
and scroll down to : 3. Deleting a line from a text file.
If you don't know enough TCL for that to get you started, then it would help
if you posted an example of the file that you want to edit.
Code: Select all
bind pub - ${trigger}pay pub:pay
proc pub:pay {nick host hand chan arg} {
global botnick fname pricetopic
set product [lindex $arg 0]
set topic [lindex $arg 1 end]
if {$product == "topic"} {
set searchstring $arg
set fp [open $fname "r"]
set data [read -nonewline $fp]
close $fp
if {$pricetopic > 10} {
putserv "NOTICE $nick :U hebt te weinig geld."
return 0
}
} else { putserv "TOPIC $chan :$topic" }
}