Write ascii 0 to file

Hi All,

I have to write ascii 0 to a text file but could’t success:

void PrintOrder3()
{
AsciiIO yzc;
str c100 = num2char(10)+num2char(0)+num2char(13)+num2char(10);
str cesc = num2char(27);
FileIOPermission permission;
#define.mode(“w”)
;

yzc.Write(cEsc + “C”+c100);

At this time ascii 0 will not write to text file. How can I do that?

Hi,

I don’t see yzc = new asciio(‘path_to_you_file’,‘w’), did you cut it from the sample code you put in your post?

regards,

Thomas

yes, I cut it. I just want to phrase related part of code… It works except for ascii 0.