Skip to content
Artwork for Ethical Hacker & Cyber Defence
Ethical Hacker & Cyber Defence · June 24 · 15 min

Workshop: reading a log and counting ERROR lines

**Theoretical Recap** In Python, reading a text file relies on the built-in `open()` function, which returns a file object. The standard pattern is to use `open()` in combination with a `with` block, which ensures the file is properly closed after re...

0:00-15:00

transcript

No transcript — this publisher did not publish one.

show notes

**Theoretical Recap** In Python, reading a text file relies on the built-in `open()` function, which returns a file object. The standard pattern is to use `open()` in combination with a `with` block, which ensures the file is properly closed after re...