File Table

The \filetbl control word introduces the file table destination. The only time a file table is created in RTF is when the document contains subdocuments. This group defines the files referenced in the document and has the following syntax:

<filetbl> '{\*'  \filetbl ('{' <fileinfo> '}')+  '}'
<fileinfo> \file <filenum><relpath>?<osnum>? <filesource>+ <file name>
<filenum> \fid
<relpath> \frelative
<osnum> \fosnum
<filesource> \fvalidmac | \fvaliddos | \fvalidntfs | \fvalidhpfs | \fnetwork
<file name> #PCDATA

Note that the file name can be any valid alphanumeric string for the named file system, indicating the complete path and file name.

Control word Definition
\filetbl A list of documents referenced by the current document. The file table has a structure analogous to the style or font table. This is a destination control word output as part of the document header.
\file Marks the beginning of a file group, which lists relevant information about the referenced file. This is a destination control word.
\fidN File ID number. Files are referenced later in the document using this number.
\frelativeN The character position within the path (starting at 0) where the referenced file's path starts to be relative to the path of the owning document. For example, if a document is saved to the path C:\Private\Resume\File1.doc and its file table contains the path C:\Private\Resume\Edu\File2.doc, then that entry in the file table will be \frelative18, to point at the character "e" in "edu". This allows preservation of relative paths.
\fosnumN Currently only filled in for paths from the Macintosh file system. It is an operating-system-specific number for identifying the file, which may be used to speed up access to the file, or find it if the file has been moved to another folder or disk. The Macintosh operating system name for this number is the "file id." Additional meanings of the \fosnumN control word may be defined for other file systems in the future.
\fvalidmac Macintosh file system.
\fvaliddos MS-DOS file system.
\fvalidntfs NTFS file system.
\fvalidhpfs HPFS file system.
\fnetwork Network file system. This control word may be used in conjunction with any of the previous file source control words.