Answer the question
In order to leave comments, you need to log in
How to parse string in c# console application?
Good evening!
How to make it so that string command = Console.ReadLine()
commands separated by a space are selected from the input string in the console application and entered into an array?
Answer the question
In order to leave comments, you need to log in
string[] cmds = Console.ReadLine().Split(new char[] {' '}, StringSplitOptions.RemoveEmptyEntries);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question