Reference/FileWrite: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(Created page with "=FileWrite= handle string Writes an ANSI string to a file opened with FileOpen. If an error occurs writing, the error flag will be set. (If you are bui...") |
mNo edit summary |
||
| Line 13: | Line 13: | ||
FileClose $0 | FileClose $0 | ||
done:</highlight-nsis> | done:</highlight-nsis> | ||
''Command introduced with NSIS v1.60'' | |||
Latest revision as of 20:35, 4 June 2013
FileWrite
handle string
Writes an ANSI string to a file opened with FileOpen. If an error occurs writing, the error flag will be set.
(If you are building a Unicode installer, the function makes the adequate conversion and writes an ANSI string)
ClearErrors FileOpen $0 $INSTDIR\file.dat w IfErrors done FileWrite $0 "some text" FileClose $0 done:
Command introduced with NSIS v1.60