Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Powerbasic > Re: Hexdump - ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 173 of 275
Post > Topic >>

Re: Hexdump - Display TextElements from binary File

by Peter Manders <news@[EMAIL PROTECTED] > Jan 16, 2006 at 09:19 PM

On Mon, 16 Jan 2006 17:10:01 GMT, "Michael Mattias"
<michael.mattias@[EMAIL PROTECTED]
> wrote:

>addthisline:
>REPLACE CHR$(0) WITH CHR$(32) IN TempStr$        <<< change all nulls to
>space for purposes of displaying

Personally I would prefer:
REPLACE CHR$(0) WITH "!" IN TempStr$

Then add this line:
TempStr$ = TempStr$ + CHR$(0)

>> MSGBOX "Position in File: " + STR$(position) + $CRLF + _
>>               "Data from File: " + TempStr$
>
>Note the TempStr DOES include the null characters, so if you write it to
a
>file the NUL will be included and if you have a hex editor of some kind
you
>will see it.

Correct Michael, but one should read Char$ where you wrote TempStr$.
You must be working long hours, like most of us.

-- 
Peter Manders.

Post may contain irony: discontinue use if experiencing mood swings,
nausea or elevated blood pressure.
 




 4 Posts in Topic:
Hexdump - Display TextElements from binary File
Alen Hopek <alen.hopek  2006-01-16 18:54:46 
Re: Hexdump - Display TextElements from binary File
"Michael Mattias&quo  2006-01-16 17:10:01 
Re: Hexdump - Display TextElements from binary File
Peter Manders <news@[E  2006-01-16 21:19:26 
Re: Hexdump - Display TextElements from binary File
"Michael Mattias&quo  2006-01-16 21:12:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Jul 8 22:48:47 CDT 2008.