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>
.
|