Stage 7: Files, Errors, and Debugging
Work with files, handle errors and find bugs.
- 01
File streams
18 minLocked: Complete "Object lifetime and resource management" first.
- 02
Reading text files
18 minLocked: Complete "File streams" first.
- 03
Writing text files
18 minLocked: Complete "Reading text files" first.
- 04
Appending to files
18 minLocked: Complete "Writing text files" first.
- 05
File-open errors
18 minLocked: Complete "Appending to files" first.
- 06
String streams
18 minLocked: Complete "File-open errors" first.
- 07
Exceptions
18 minLocked: Complete "String streams" first.
- 08
try, catch, and throw
18 minLocked: Complete "Exceptions" first.
- 09
Standard exception types
18 minLocked: Complete "try, catch, and throw" first.
- 10
Input validation
18 minLocked: Complete "Standard exception types" first.
- 11
Debugging in VS Code
18 minLocked: Complete "Input validation" first.
- 12
Reading compiler errors
18 minLocked: Complete "Debugging in VS Code" first.
- 13
Using assertions
18 minLocked: Complete "Reading compiler errors" first.
- 14
Defensive programming
18 minLocked: Complete "Using assertions" first.
- 15
Testing program behavior
18 minLocked: Complete "Defensive programming" first.
Level up this stage
- Debugging: Catch the bad index (intermediate)
- Debugging: Random total (beginner)
- Revise for exams: MCQs, short questions and past-paper programs