Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. using System;
  2. using System.IO;
  3.  
  4. namespace Cat
  5. {
  6.    class Program
  7.    {
  8.       static void Main( string[] args )
  9.       {
  10.          Stream stdin = Console.OpenStandardInput();
  11.          Stream stdout = Console.OpenStandardOutput();
  12.          byte[] buffer = new byte[ 4096 ];
  13.          while( 0 != stdin.Read( buffer, 0, 1 ) )
  14.             stdout.Write( buffer, 0, 1 );
  15.       }
  16.    }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement