A look at the benefits of using pathlib, the "object-oriented way of dealing with paths". Working with files is one of the most common things developers do. After all, you often want to read from ...
All dates and times are validated. E.g. "20241341" is not a date; "246199" is not a time. Group name in the result will be None if not found or not valid. If both path and filename have the group, ...
- The keyword `with` **closes the file** once access to it is no longer needed. - Notice how we call `open()` in this program but not `close()`. You could open and close the file by calling `open()` ...