System::cat()

System::cat() -- concatenate files. It support also bash style stdout redirections

Description

mixed &cat (string $args)

Parameter

Returns

cat man page

Example

// Dump the contents of sample.txt and test.txt into the $var var
$var = System::cat('sample.txt test.txt');
// Concatenate the contents of sample.txt and test.txt into final.txt
System::cat('sample.txt test.txt > final.txt');
// Same as above but will append the contents to final.txt instead
// of truncating it
System::cat('sample.txt test.txt >> final.txt');