Practice · 4 of 4
Corrupt-line policy
CHALLENGE
Difficulty: beginner+25 XP
Implement static (int Loaded, int Skipped) LoadScoresLenient(string path, List<(int Id, string Name, int Score)> into): parses each id|name|score line; well-formed lines load, malformed lines (wrong field count, non-numeric id/score) are skipped and counted. Returns both counts.
Press Submit to check your solution.
Back to lesson: Practice: File I/O workout