flat assembler
Message board for the users of flat assembler.
Index
> Windows > problem with fwrite |
Author |
|
AsmGuru62 09 Jul 2012, 20:20
Replace:
Code: fileWrite db "w", 00 with: Code: fileWrite db "wb", 00 Because what you need is a binary write, and by default fopen uses text conversion, where it replaces 0Ah bytes with 2 bytes for CF-LF. Ref: http://www.cplusplus.com/reference/clibrary/cstdio/fopen/ |
|||
09 Jul 2012, 20:20 |
|
magicSqr 09 Jul 2012, 20:33
That's great. Easy when you know how
Thanks AsmGuru |
|||
09 Jul 2012, 20:33 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.