Wiki Home

Riff File

Namespace: VB
RIFF (Resource Interchange File Format ) is a Microsoft file format, described here:

Essentially, a RIFF file is a recursive definition: the whole file is one chunk (starting with a 4 character chunk identifier, then a 4 byte DWORD identifying the length of the remaining chunk).

The contents of that chunk will often be more chunks, each formatted with a 4 char id, then a 4 byte DWORD length, followed by the contained data.

A chunk can be arbitrarily formatted in any way, dependant on the 4 char chunk id field.

An Avi File is a RIFF file
A WavFile is a RIFF file

for some I/O examples.

For more info, see:

Contributors: ?wgcs
Category File Formats
( Topic last updated: 2004.12.13 02:48:22 PM )