No problem with Poasm :
.386
.model flat,stdcall
option casemap:none
option cstrings:on
printf PROTO C :DWORD,:VARARG
ExitProcess PROTO :DWORD
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\msvcrt.lib
.data
str1 db 'This\nis\na\ntest',0
.code
start:
invoke printf,ADDR str1
invoke ExitProcess,0
END start
CstringOption.exe
This
is
a
test
CstringOption.exe > Sample.txt
type Sample.txt
This
is
a
test
Disassembling the object module :
_data SEGMENT DWORD PUBLIC 'DATA'
str1 label byte
db 54H, 68H, 69H, 73H, 0AH, 69H, 73H, 0AH
db 61H, 0AH, 74H, 65H, 73H, 74H, 00H
_data ENDS