Programming

(C#) Console.ReadLine은 254자까지만 읽을 수 있다.

steloflute 2018. 5. 10. 00:54

https://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k(System.Console.ReadLine);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.5);k(DevLang-csharp)&rd=true

 

By default, the method reads input from a 256-character input buffer. Because this includes the Environment.NewLine character(s), the method can read lines that contain up to 254 characters. To read longer lines, call the OpenStandardInput(Int32) method.

 

주의해야겠네요.

https://stackoverflow.com/questions/5557889/console-readline-max-length