If you only need to write to a file, and server side scripting will fit the bill then below I've written a simple piece of php to write to a file.
(Tried to keep it as simple as I could....hope that you can understand it.)
function writetofile($string,$name,$exists=false){
//if exists = false then it does not matter if it already exists.
//if true and the file exists it will return false
$fixed_extension = ''; //If you want to only allow .txt or lets say .csv to be written then change this and it will be glued as the extension.
if($exists === true){
if(file_exists($name . $fixed_extension) === true){
return false;
}
}
file_put_contents($name . $fixed_extension,$string);
return true;
}
if(writetofile('Written at: ' . mktime(),"helloworld.html") === true){
echo 'Written to file.';
} else {
echo 'File exists or there are limitations on the server.';
}