Am 28.01.18 um 02:51 schrieb Andre:
> Ronald and rich sorry for that. I have try using below script but why the result always add two lines (blank string) on the end of actual string?
>
> set lines [lrange $lines 2 end]
> puts $fp [join $lines “\n”]
puts always adds an extra newline. If you want to stop it, use
puts -nonewline $fd $something. [split \n] converts every line into a
string. If you have a regular file, which ends in \n, it will give you
an empty string at the end.
Christian