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.


|