N
N
Nikolay Semenov2016-12-09 11:16:52
.NET
Nikolay Semenov, 2016-12-09 11:16:52

How to understand c# test task correctly?

Guys, hello everyone.
The test task contains the following paragraph:
The name of the input, output file, sorting mode, as well as the content type are set at
startup through command line arguments. Windows command line examples:
sort-it.exe in.txt out.txt -i -a (for integers in ascending order)
sort-it.exe in.txt out.txt -i -d (for integers in ascending order) descending)
sort-it.exe in.txt out.txt -s -a (for ascending lines)
Please do not judge strictly - the newbie is green.
Tell me on your fingers how should I interpret this? those. do I need to read this string, then split it into substrings, which will be input values ​​for other methods (reading a file, sorting)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-12-09
@nickola105

How to count command line arguments:
www.cyberforum.ru/csharp-beginners/thread323348.html
ru.stackoverflow.com/questions/427155/%D0%9A%D0%B0...
Next, you roughly understood correctly - if (sortorder = = "a") { ... }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question