I need to create a file in Windows with the following format (not one I
designed):
  Field number - 2 bytes in MS Lo-Hi order
  Field length - 1 byte
  String data  - as many characters as specified in field length

Using a hex editor the file would look like this:
  01 00 05 41 42 43 44 45   02 00 10 41 42 43 44 45    ...ABCDEF...ABCDE
  46 47 48 49 4A 4B 4C 4D   4E 4F 50 FF FF             FGHIJKLMNOP..

with field number 1, 5 characters "ABCDE"
     field number 2, 16 characters "ABCDEFGHIJKLMNOP"
FF FF marks the end of the file.

Any help would be appreciated. I'm new to Rebol and am having trouble with
this one.

TIA

Mike

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to