FileWrite(filename, str_data);
filename
str_data
0 >0 Failure. This value can be sent to IoErrText which will return an error text for the failure.//Write the contents of $utbuf to myfile.txt
//and store the returned value in $err$err = filewrite("myfile.txt",$utbuf);//If the action was unsuccessful, pass the error value
//to ioerrtext and store the error text returned by
//ioerrtext in $errtext.
//Send the error text to the log fileif(num($err)!=0)
{
$errtext=ioerrtext($err);
log(0,"Errortext "+$errtext);
}
OpenText StreamServe 5.6 | Updated: 2013-03-01 |