Practice · 2 of 4
Create It, Then Count It
CHALLENGE
Difficulty: beginner+25 XP
Two steps in one program: (1) write input.txt containing EXACTLY these four lines, one per line: alpha, beta, gamma, delta. (2) Read the file back and print the number of lines (just the number).
Press Submit to check your solution.
Back to lesson: Practice: Read & Write Drills