How can I read or write files?

From NSIS Wiki

Use FileOpen, FileRead, FileWrite, FileSeek, and FileClose to manipulate files.

You can find a small example showing how to replace a line here.

Note that if INI files are in the question, it might be easier to use WriteINIStr, ReadINIStr, DeleteINIStr, and DeleteINISec.

Personal tools
donate
ads