Skip to main content

Practice · 2 of 4

Append-only log

CHALLENGE
Difficulty: beginner+25 XP

Implement static void AppendLine(string path, string line) (appends one line, creating the file if needed) and static string[] ReadLines(string path) (all lines; empty array for a missing file, never null).

Back to lesson: Practice: File I/O workout