static void Main(string[] args)
{
Stream steam = Console.OpenStandardInput();
Console.SetIn(new StreamReader(steam,Encoding.Default,false,5000));
string str = Console.ReadLine();
Console.WriteLine(str);
}
话不多说!试了就知道!