realbasic-nug
[Top] [All Lists]

Re: WritePString weirdness...

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: WritePString weirdness...
From: Mark O'Neill <real at rbclass dot com>
Date: Sat, 29 Mar 2008 01:05:19 +0000
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <226027DE-9E67-4701-90AD-12E8F3383CF6 at rbclass dot com> <A25A863C-0D80-45E6-B1E9-1FE69247BCC9 at frontiernet dot net>
Hi Harrie,

On 28 Mar 2008, at 18:24, Harrie Westphal wrote:

> You showed the code used to write the string out. What code was used
> to read it in? You did use the PString version to read it back in
> didn't you. Because if you didn't then that funny character is the
> one byte length value at the beginning of the string of output.

Yes, here's the code:

SettingCopyrightText = stream.ReadPString

But that character is present in the file if I open it.

All the best,

Mark.
------------------------------------------------------------
RB Class
"Killer Tool Bar" - theme-based x-platform toolbar
www.rbclass.com



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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