Closed vorotynsky closed 1 year ago
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Tagging subscribers to this area: @dotnet/area-system-io See info in area-owners.md if you want to be subscribed.
Author: | vorotynsky |
---|---|
Assignees: | - |
Labels: | `api-suggestion`, `area-System.IO`, `untriaged` |
Milestone: | - |
Related: https://github.com/dotnet/runtime/issues/64621, which proposes a different API with the same goal.
Hi @vorotynsky
Thank you for your proposal. Since #64621 was opened first and includes proposal for other types as well I am going to close this issue as a duplicate. Please follow #64621 for updates.
Background and motivation
C# doesn't have an API to read rows of integers from the console nicely.
One of the solutions is:
Such a code is necessary for solving problems at codeforces or olympiads.
API Proposal
API Usage
Alternative Designs
C++ operators
Java's
Scanner
Text format
C has function
scanf
, and F#, Go has the same API.C# can adopt it like this:
Just read a word
Risks
No response