realbasic-nug
[Top] [All Lists]

Re: Byte in nXnn form ?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Byte in nXnn form ?
From: Frank Bitterlich <bitterlich at gsco dot de>
Date: Fri, 25 Apr 2003 14:19:21 +0200
Sure...

do until myBinaryStream.EOF
   s = s + "0x" + Right("00"+Hex(myBinaryStream.ReadByte), 2)+" "
loop

The Language Reference is your friend :)

Cheers,
   Frank+++

Stéphane Pinel wrote:
> 
> I would like to read a binary file then convert each byte in a 0XNN
> form. Is there an
> approach in RB to do that ?
> 
> Thanks


--
Günter Schmidt & Co. oHG         
Frank Bitterlich             eMail: bitterlich at gsco dot de
Schlosserstr. 4              WWW:   http://www.gsco.de/gsco
D-60322 Frankfurt            Tel.:  069 / 156809-29
GERMANY                      Fax:   069 / 156809-28

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe:
<mailto:realbasic-nug-off at lists dot realsoftware dot com>

Subscribe to the digest:
<mailto:realbasic-nug-digest at lists dot realsoftware dot com>
.


<Prev in Thread] Current Thread [Next in Thread>