Return to Snippet

Revision: 35107
at November 2, 2010 18:39 by G470


Initial Code
$mycontent = "My sample text";
$myFile = "inhalt.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = $mycontent;
fwrite($fh, $stringData);
fclose($fh);

Initial URL


Initial Description


Initial Title
write to text file

Initial Tags
php, text

Initial Language
PHP