c2ephp

tests/cob-extract.php

Go to the documentation of this file.
00001 <?php
00002 include('../agents/COB.php');
00003 require_once('../support/FileReader.php');
00004 
00005 $cob = new COB(new FileReader($argv[1]));
00006 
00007 $blocks = $cob->GetBlocks(COB_BLOCK_FILE);
00008 foreach($blocks as $block) {
00009   print $block->GetName()."\n";
00010   $fh = fopen($block->GetName(),'wb');
00011   fwrite($fh,$block->GetContents());
00012   fclose($fh);
00013 }
00014 
00015 ?>
 All Classes Files Functions Variables Enumerations