Reference/FileWriteByte: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(Created page with "=FileWriteByte= handle string Writes the integer interpretation of 'string' to a file opened with FileOpen. Of course you can enter the integer value di...") |
mNo edit summary |
||
| Line 9: | Line 9: | ||
If an error occurs while writing, the error flag will be set. Note that the low byte of the integer is used, i.e. writing 256 is the same as writing 0, etc. | If an error occurs while writing, the error flag will be set. Note that the low byte of the integer is used, i.e. writing 256 is the same as writing 0, etc. | ||
''Command introduced with NSIS v1.80'' | |||
Latest revision as of 20:45, 4 June 2013
FileWriteByte
handle string
Writes the integer interpretation of 'string' to a file opened with FileOpen. Of course you can enter the integer value directly. The following code writes a "Carriage Return / Line Feed" - Enter to the file.
FileWriteByte file_handle "13" FileWriteByte file_handle "10"
If an error occurs while writing, the error flag will be set. Note that the low byte of the integer is used, i.e. writing 256 is the same as writing 0, etc.
Command introduced with NSIS v1.80