<?php
// yes, these functions double built-in functions
// but I'm not in the mood for a global search-and-replace...
function read_file($filename)
{
if(!($fp = fopen($filename, 'r'))) return '';
$content = fread($fp, filesize($filename));
fclose($fp);
return $content;
}
function write_file($filename, $data)
{
if($fp = fopen($filename, 'w'))
{
fwrite($fp, $data);
fclose($fp);
return true;
}
return false;
}
?>
Latest News
Latest Software
read 0.3.6
kal, 2004/04/30 07:14:24.
nroff 1.10
kal, 2004/04/22 08:29:10.
Nenscript 1.13.3
kal, 2004/04/22 08:23:53.
necho 0.2.3
kal, 2004/04/19 10:58:47.
dgrep 0.1.4
kal, 2004/04/19 10:49:42.
kal, 2004/04/30 07:14:24.
nroff 1.10
kal, 2004/04/22 08:29:10.
Nenscript 1.13.3
kal, 2004/04/22 08:23:53.
necho 0.2.3
kal, 2004/04/19 10:58:47.
dgrep 0.1.4
kal, 2004/04/19 10:49:42.
Select Theme
Links