Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.13 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.13 KB

sort-names

Programming Exercise for GlobalX

Requirements

Write .NET console app that;

  • Takes as a parameter a string that represents a text file containing a list of names.
  • Orders the names by last name followed by first name.
  • Creates a new text file called -sorted.txt with the list of sorted names.

For example, if the input file contains:

BAKER, THEODORE
SMITH, ANDREW
KENT, MADISON
SMITH, FREDRICK

Then the output file would be:

BAKER, THEODORE
KENT, MADISON
SMITH, ANDREW
SMITH, FREDRICK

Example of console execution:

sort-names c:\names.txt
BAKER, THEODORE
KENT, MADISON
SMITH, ANDREW
SMITH, FREDRICK
Finished: created names-sorted.txt

Notes