/**
  * Read Gedcom file contains
  *
  * @access private
  * @return null
  */
 function _getFileContent()
 {
     $buffer = array();
     if ($fp = @fopen($this->_GedcomFile, 'r')) {
         while (!feof($fp)) {
             $buffer[] = trim(fgets($fp, 1024));
         }
         fclose($fp);
         // unset the last line if it's empty
         if (empty($buffer[count($buffer) - 1])) {
             unset($buffer[count($buffer) - 1]);
         }
         $this->_FileContent = $buffer;
         unset($buffer);
     } else {
         Genealogy_Parser::_raiseError('Cannot open file ' . $this->_GedcomFile);
     }
 }
 /**
  * Constructor
  *
  * Creates a new Genealogy_Gedcom Object
  *
  * @param string $filename Gedcom filename
  *
  * @access public
  * @return object Genealogy_Gedcom the new Genealogy_Gedcom object
  */
 function Genealogy_Gedcom($filename)
 {
     $this->_GedcomFile = $filename;
     parent::parse();
 }