PEAR Manual
Prev |  | Next

# System::&cat

System::&cat -- concatenate files

## Synopsis

    require_once "System.php";

``boolean System::&cat` (string $args)`

## Description

Concatenate files. The method uses fopen(), URLs should work too.

## Parameter

- `string $args` - the arguments

## Return value

`boolean` - `TRUE` on success

## Note

This function can be called statically.

## See

cat man page

## Example

Example 26-1. Using &cat()
    $var = System::cat('sample.txt test.txt');
           System::cat('sample.txt test.txt > final.txt');
           System::cat('sample.txt test.txt >> final.txt');

Prev | Home | Next
System::mkDir | Up | System::mktemp