I am trying to search a string and replace it.
I can read a file, but I do not know how to search exact word and replace to another value.
Could you do me a favor?
thank you in advance.
set openfile open ["xmlpage.xml" "r"]
gets $openfile line
while {![eof $openfile]} {
#---this part, I think I need search command.
puts $line
gets $openfile line
}
}
I can read a file, but I do not know how to search exact word and replace to another value.
Could you do me a favor?
thank you in advance.
set openfile open ["xmlpage.xml" "r"]
gets $openfile line
while {![eof $openfile]} {
#---this part, I think I need search command.
puts $line
gets $openfile line
}
}