Re: Can someone help me with file printings?

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Thu, 27 Jul 2000 13:43:02 -0400, Alexander wrote:

>I can't get my program to write #00 (the hex value, not the characters) It
>simply won't print it, can anyone tell me how to print #00 to a file?
>
>Thanks in advance


-- The following program will print #00 to #0F to a binary file:

atom hFile

hFile = open( "test.bin", "wb" )

for i = 0 to 15 do
  puts( hFile, i )
end for

close( hFile )

-- I hope this is what you are trying to do...
-- Brian

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu