<?php 
/* 
 * TxtXtrator - arquivo de exemplo 
 * Mostra como utilizar o método show() com o formato html 
 */ 
function noSpace($string){ 
    $string = trim($string); 
    return $string; 
} 
 
require '../TxtXtrator.class.php'; 
$TxtXtrator = new TxtXtrator(); 
$filename = 'CREDOR.TXT'; 
$TxtXtrator->loadFile($filename); 
$TxtXtrator->loadTpl('credor.json'); 
$TxtXtrator->setCsvSeparator(';'); 
$TxtXtrator->xtract(); 
$TxtXtrator->setOutputType('html'); 
$TxtXtrator->setLineBreakType('html'); 
$TxtXtrator->output(); 
$TxtXtrator->show(); 
?> 
 
 |