Rolando
8th October 2004 18:18 UTC
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
8th October 2004 18:45 UTC
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
8th October 2004 18:56 UTC
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.
http://nsis.sourceforge.net/archive/...b.php?page=630
-Stu
Rolando
8th October 2004 21:59 UTC
Thanks alot ! :D This works great.