Here's a basic implementation of a cat program in C#:
main.cs788 chars34 linesThis program takes the names of one or more files as command-line arguments, and outputs their contents to the console. If any file is not found, it prints an error message for that file and continues with the rest of the files. The using statement ensures that the reader is properly disposed of when it's no longer needed.
gistlibby LogSnag