Example #1
0
<?php

require "file.php";
echo File::exists("sample.txt") ? "it does" : "it doesn't";
echo "<br>";
echo File::size("file.php");
echo "<br>";
echo File::name("sample.txt");
echo "<br>";
echo File::extension("sample.txt");
echo "<br>";
echo File::last_updated("file.php");
echo "<br>";
echo File::get("sample2.txt", "A default value");
//echo "<br>";
//echo File::delete("sample.txt");
echo "<br>";
echo File::append("sample.txt", "here is some more new data" . PHP_EOL);
echo "<br>";
echo File::truncate("sample.txt");
?>

<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>

</body>
</html>