All pastes #928261 Raw Edit

Something

public text v1 · immutable
·published 2008-03-04 22:11 UTC
rendered paste body
<?PHP  
$filename = 'xchat.log';

$fp = fopen($filename, 'r') or die('<br /><br /><b>Impossibile aprire il file <b>'.$sorgenteDati[$type].'</b>, operazione annullata</b>');

$fpOut = fopen(str_replace('.log', '.processed', $filename), 'w');
  
while (!feof($fp))
	fwrite($fpOut, substr(trim(fgets($fp, 4096)),16)."\r\n");

echo 'done!';
?>