Sets the Console.In property to the specified System.IO.TextReader object.
Type Reason ArgumentNullException newIn is null.
By default, the Console.In property is set to the standard input stream.
A System.IO.StreamReader that encapsulates a System.IO.FileStream can be used to receive input from a file.
Type | Reason |
---|---|
System.Security.Permissions.SecurityPermissionFlag | Requires permission to execute unmanaged code. See System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode . |