System.Console.SetIn C# (CSharp) Method

SetIn() public static method

public static SetIn ( System newIn ) : void
newIn System
return void
        public static void SetIn(System.IO.TextReader newIn) { }
        public static void SetOut(System.IO.TextWriter newOut) { }

Usage Example

Example #1
0
 public static void MainTest(string[] args)
 {
     if (args.Length > 0)
     {
         StdIn.SetIn(File.OpenText(args[0]));
     }
     Console.WriteLine("Template");
 }
All Usage Examples Of System.Console::SetIn