1. Can someone help me with file printings?
- Posted by Alexander <Carnivals at INAME.COM> Jul 27, 2000
- 414 views
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
2. Re: Can someone help me with file printings?
- Posted by Alex Ford <FFUltimateMaster at CS.COM> Jul 27, 2000
- 411 views
um... i'm not expert at this, but i belive that the '#' can be put into hex and so can the '00'... if you can do this, and make the values (#00)come up right, then you should get it... but use this last, unless someone else agrees... ~later~
3. Re: Can someone help me with file printings?
- Posted by Brian Broker <bkb at CNW.COM> Jul 27, 2000
- 412 views
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
4. Re: Can someone help me with file printings?
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Jul 27, 2000
- 427 views
Hello Alexander, >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 I think this might work: puts (fn, #00) -- fn being the file handle How ever be aware that text editors wont display it as a number. It will just look like a black block or a smiley face or something. later, Lewis Townsend ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
5. Re: Can someone help me with file printings?
- Posted by Alexander <Carnivals at INAME.COM> Jul 27, 2000
- 423 views
Thanks all, that did the trick, I am aware that it will look like a space character, some programs I had in mind will use the #00 (file transfer thru serial cable, encrypting/decrypting program, patching program)