Krzysztof Mossakowski
Advanced Windows Programming
2004 - Tasks
.NET Framework, Console Application
Version A
Sorting email addresses
Functionality:
Get the name of input file from command line
Read names and addresses from input file
Format: firstName lastName <email>
Sample data
Get command from the user:
name - lists addresses sorted by last name and first name
email - lists addresses sorted by email address
quit
Technical requirements:
Do not duplicate the data
Implement IComparer interface
Catch all exceptions
Hints:
IComparer
StreamReader
Approximate points:
command line argument: 1.0
reading data from input file: 3.5
getting user's commands: 1.0
sorting: 3.5
listing data: 1.0