Archive: Searching a field in file


Searching a field in file
Hi,

How to search for field in a file.
I am prompting for user name and group.
Now i want to make this entry in an existing file.

Ex: Content of file a1.txt is
user= xyz
group = zey

I want to search for field user and group then i will change user xyz to abc and zey to cde.

Final content of a1.txt shoud be
user = abc
group = cde

Any help appreciated.

Regards
Sandy


ConfigWrite from TextFunc.nsh.
Described in NSIS manual.


Thank You.
It worked for me.