Re: Yarn folders and news.dat format ?

Mel Wilson (mwilson@interlog.com)
Thu, 18 Apr 1996 20:39:19 -0400

In article <QjsdxQTC3Mye090yn@piw.it>, albe@piw.it (Alberto Velo) wrote:
>Can somebody explain me how to read Yarn folder files and news.dat, using
>C/C++?
>I mean, what's the format of the files? For example I see articles in folders
>are preceded by a couple of chars: which is their meaning, how to handle these
>chars?

AFAIK in the (Yarn 0.84) folders, each message is preceded by a
4-byte binary number, Intel style, giving the number of bytes in the
message following. Seek that many bytes from the first character of the
actual message, and you're at the character count for the next message.
This looks a lot like the "Binary 8-bit clean news format" described in
the SOUP documentation, except for the endian-ness of the character
counts.

Regards. Mel.