| View previous topic :: View next topic |
| Author |
Message |
Hiter Voice
Joined: 24 Feb 2013 Posts: 1
|
Posted: Sun Feb 24, 2013 4:40 pm Post subject: Replace line in the file |
|
|
Hi.
How replace a specific line in the file?
e.g
1. <html>
2. <head>
3. <p><center>Hello WORLD!!!</p></center>
4. <p> How are you </p>
5. </head>
6. </html>
And how to replace 4 line text: Do You love dogs?
I do not want to pre-script.
I need a formula that turns the text on the specific line.
Thanks. |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
|
| Back to top |
|
 |
Nimos Halfop
Joined: 20 Apr 2008 Posts: 80
|
Posted: Sun Feb 24, 2013 11:06 pm Post subject: |
|
|
| set text [join [lreplace [split $text "\n"] 3 3 "Do you love dogs?"] "\n"] |
|
| Back to top |
|
 |
|