How can I read or write files?: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
No edit summary |
m (Added links to NSIS Documentation for commands.) |
||
Line 1: | Line 1: | ||
Use FileOpen, FileRead, FileWrite, FileSeek, and FileClose to manipulate files. | Use [http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.5.2 FileOpen], [http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.5.3 FileRead], [http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.5.6 FileWrite], [http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.5.5 FileSeek], and [http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.5.8 FileClose] to manipulate files. | ||
You can find a small example showing how to replace a line [[Reading_and_Writing_in_files|here]]. | You can find a small example showing how to replace a line [[Reading_and_Writing_in_files|here]]. | ||
Note that if INI files are in the question, it might be easier to use WriteINIStr, ReadINIStr, DeleteINIStr, and DeleteINISec. | Note that if INI files are in the question, it might be easier to use [http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.2.13 WriteINIStr], [http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.2.10 ReadINIStr], [http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.2.2 DeleteINIStr], and [http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.2.1 DeleteINISec]. | ||
[[Category:Scripting FAQ]] | [[Category:Scripting FAQ]] |
Revision as of 19:29, 23 November 2009
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.