Archive: replace line in text file


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


http://nsis.sourceforge.net/archive/...b.php?page=343 ?

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

-Stu


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


Thanks alot ! :D This works great.