ukerandi
asked on
C# Text file Sort
Hi,
This Following records available in the Text file,
Employee ID:2
Month name:October 2014
Salary:200444
Confirmation Payments:Y
Employee ID:1
Month name:December 2014
Salary:20099
Confirmation Payments:Y
Employee ID:3
Month name:November 2014
Salary:2005
Confirmation Payments:Y
i need to sort , Latest Months Data I need to get first any idea appriciate.
This Following records available in the Text file,
Employee ID:2
Month name:October 2014
Salary:200444
Confirmation Payments:Y
Employee ID:1
Month name:December 2014
Salary:20099
Confirmation Payments:Y
Employee ID:3
Month name:November 2014
Salary:2005
Confirmation Payments:Y
i need to sort , Latest Months Data I need to get first any idea appriciate.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Easy to parse into an object.
Q2. For sorting purposes. Is it safe to assume that Month name format is "[Full month name][space][year]?
Required for parsing the date string into date time so that we can compare them.