Re: Yarn folders and news.dat format ?

Alberto Velo (albe@piw.it)
Fri, 19 Apr 1996 16:25:28 -0100

In article <3Cudxks/KrXT084yn@interlog.com>, you wrote:

>>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

That's it, I thought it should be something like that ;).
Thank you!

BTW, 4 byte means it's a long? I'm quite new to C/C++, and can't understand
what to use in order to read the file: fgetc()? fread() ?

-- 
Bye,   AL!       

Team OS/2 Italia WebMaster ---> MD1652@mclink.it IBM DAP Member E-mail : albe@piw.it Fidonet: 2:334/708.1 PGP Key available OS2net : 81:439/63.1 BBS : Telnet bbs.piw.it (194.21.239.4)

--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- Dica, e' sua moglie quella vicino a lei, o le hanno vomitato sulla sedia? Leslie Nielsen --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---