/**
  * parse Bookmark file static method returns 3 dimensional array of
  * bookmarks and folders
  * @param	string		file
  */
 function _parseFile($file)
 {
     if (file_exists($file) && is_file($file)) {
         $fp = fopen($file, "r-");
         while ($line = fgets($fp)) {
             $line = trim($line);
             if (preg_match('/<!DOCTYPE NETSCAPE-Bookmark-file-1>/i', $line)) {
                 return ilBookmarkImportExport::__parseNetscape($fp);
             }
         }
     }
     return false;
 }