Something
public text v1 · immutable<?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!';
?>