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

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.

It looks like you need to tell RB what encoding this string is in. If what you wrote to the file was all data generated within RB then the encoding is probably UTF8 so try changing the above to:

  c = b.ReadShort
  s = b.read(c, Encodings.UTF8)

Hopefully that will do it for you.

=== A Mac addict in Tennessee ===

_______________________________________________
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