Location: PHPKode > scripts > File Writer > file-writer/example.php
<?PHP
//Include the main class file
include("main.php");

//Create a new file_writer object
$file = new file_writer;

//Write to a new file
$file->write("test.txt", "Test Test Test");

//Append more text to the file
$file->append("test.txt", "\r\nTest Test Test");
?>
Return current item: File Writer