Metainformationen zur Seite
LoxBerry::System::write_file
$string= LoxBerry::System::write_file($filename, $content);
LoxBerry Compatibility
This feature first is available with LoxBerry 2.2.1. Set your LB_MINIMUM version in your plugin.cfg accordingly.
Rückgabe
undef
wenn die Datei erfolgreich geschrieben wurde.
$string
mit dem Fehler im Fehlerfall.
Verwendung
use LoxBerry::System; my $string = "Hello World!"; my $response = LoxBerry::System::write_file("$lbpdatadir/textfile.txt", $string); if( $response ) { print "Error: $response"; }