Skip to main content

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.

Back to lesson: Practice: File I/O workout