Codice PHP:
<?php
$path_to_file 
"path_al_tuo_file";
$news "questa è la news che scrivo";

$file fopen($path_to_file'w');
fwrite($file$news);
fclose($file);
?>
Occhio ai permessi sulle cartella che contiene il file