   /* Open the document */
      /* Save the current directory */
      FilePushDir();  
      FoamSetDocumentDir( vp-&gt;VP_documentInfo.DI_docDir );  
      theFile = VMOpen( vp-&gt;VP_documentInfo.DI_docName,
                        VMAF_FORCE_READ_WRITE | VMAF_FORCE_DENY_WRITE, 
                        VMO_OPEN, 0 );

      /* Now that we've opened the file, initialize its data.
         In our example, document files are pretty simple, 
         containing two WWWFixedAsDWord values. */
      theBlock 