On Dec 23, 2005, at 5:05 PM, Bernard Sunderland wrote:

HarrieWestphal wrote:
Have you tried changing the first statement above to:
  b.writeShort lenB(s)

Thank you Harrie, that solves it. There are many functions which are
difficult to find when their existence is not known.

Sorry, actually it only half solves it:
Yes, it files the correct number of bytes, but
    c=b.ReadShort
    s=b.read c
results in the string s containing an unwanted character. I can't see the solution to this.

Why are you using ReadShort? For storing a string, you'll be better off using WritePString, as long as the byte-length of the string is at most 255 bytes.

--------------
Charles Yeomans

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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to