title: How can I read a Doc file with PhpWord?
body: <p>recently i download php word which i download from github but i dont know how to read word file via this ?
  there is no help in this lib. i saw a file like same as php excel bbut dont know how to use . below file: simple01 sample.php</p>
  
  <pre><code>&lt;?php
  
  error_reporting(E_ALL);
  
  if(php_sapi_name() == 'cli' &amp;&amp; empty($_SERVER['REMOTE_ADDR'])) {
      define('EOL', PHP_EOL);
  }
  else {
      define('EOL', '&lt;br /&gt;');
  }
  
  require_once '../src/PHPWord.php';
  
  // New Word Document
  echo date('H:i:s') , " Create new PHPWord object" , EOL;
  $PHPWord = new PHPWord();
  
  // New portrait section
  $section = $PHPWord-&gt;createSection();
  
  // Add text elements
  $section-&gt;addText('Hello World!');
  $section-&gt;addTextBreak(2);
  
  $section-&gt;addText('I am inline styled.', array('name'=&gt;'Verdana', 'color'=&gt;'006699'));
  $section-&gt;addTextBreak(2);
  
  $PHPWord-&gt;addFontStyle('rStyle', array('bold'=&gt;true, 'italic'=&gt;true, 'size'=&gt;16));
  $PHPWord-&gt;addParagraphStyle('pStyle', array('align'=&gt;'center', 'spaceAfter'=&gt;100));
  $section-&gt;addText('I am styled by two style definitions.', 'rStyle', 'pStyle');
  $section-&gt;addText('I have only a paragraph style definition.', null, 'pStyle');
  
  // Save File
  echo date('H:i:s') , " Write to Word2007 format" , EOL;
  $objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007');
  $objWriter-&gt;save(str_replace('.php', '.docx', __FILE__));
  
  echo date('H:i:s') , " Write to OpenDocumentText format" , EOL;
  $objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'ODText');
  $objWriter-&gt;save(str_replace('.php', '.odt', __FILE__));
  
  echo date('H:i:s') , " Write to RTF format" , EOL;
  $objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'RTF');
  $objWriter-&gt;save(str_replace('.php', '.rtf', __FILE__));
  
  
  // Echo memory peak usage
  echo date('H:i:s') , " Peak memory usage: " , (memory_get_peak_usage(true) / 1024 / 1024) , " MB" , EOL;
  
  // Echo done
  echo date('H:i:s') , " Done writing file" , EOL;
  ?&gt;
  </code></pre>
  
  <p>Regards,Ahsan</p>