๐ WAYPOINT LESSON
Checkpoint โ Files
โญ beginnerโณ 20 min read๐ Lesson 57 of 85
A notes store: append, load with a lenient corrupt-line policy, and search โ durable across process restarts.
Checkpoint: the notes store
Task: implement in Solution a tiny notes store over id|title|body lines:
static int SaveNote(string path, int nextId, string title, string body)โ appendsnextId|title|bodyas one line and returnsnextId + 1(the caller's running id).static List<(int Id, string Title, string Body)> LoadNotes(string path)โ parses the file; malformed lines skipped; missing file โ empty list.static List<(int Id, string Title, string Body)> Search(List<(int Id, string Title, string Body)> notes, string term)โ notes whose title OR body containsterm(case-insensitive), preserving order.