[REBOL] Unusual file format
From: mduncan::homezipr::com at: 14-Nov-2000 13:39
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