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).
Press Submit to check your solution.
Back to lesson: Practice: File I/O workout