Skip to content
⌘ NSIS Forum Archive

replace line in text file

4 posts

Rolando#

replace line in text file

Well I've seen some functions that allow a user to search and replace a certain line in a text file. But I'm looking for something different. I want to be able to change line 50 for example in a certain text file. Can anyone help ?

Thanks,
Rolando
Afrow UK#
http://nsis.sourceforge.net/archive/...b.php?page=343 ?

Edit: Oh I see you want the old line to be completely deleted too?

-Stu
Afrow UK#
I've made the function which you can grab below.
It's practically identical to the other function except it doesn't write the original line back.



-Stu