Click or drag to resize
Cat Class
The Cat class provides a client for concatenating the results of several text files.
Inheritance Hierarchy
SystemObject
  Algs4NetCat

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class Cat

The Cat type exposes the following members.

Methods
  NameDescription
Public methodStatic memberMainTest
Reads in a sequence of text files specified as the first command-line arguments, concatenates them, and writes the results to the file specified as the last command-line argument. The code demonstrates .NET's using statements and Stream I/O classes. If a single file name is provided, the file is rewritten using its content (unchanged).
Top
Remarks

For additional documentation, see Section 1.1 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.

This class is a C# port from the original Java class Cat implementation by the respective authors.

See Also