✅ How do i order these lines from highest to lowest from a text file
From this text file, there are 5 lines. I want to order these people and output the order from highest to lowest from their capstone mark, how do i do this?
7 Replies
i can use either .split() or .substring() to get the mark out but how do i order these from highest to lowest whilst also keeping their names in it too?
i would create a class (in this case multiple) to represent the data in each line and parse the lines into a list of those classes, that makes working with the data in C# significantly easier
unfortunately for you that doesn't look like any common serialization format i know of
which is kinda odd, as it resembles json
Are you the one who generated this text?
@Jimmacle @sn0wgirl_97 @hime oh no this is just lines in a text file
I mean, are you the one who write the text file
oh no these are pre written