Properties provide a way to customize access to instance attributes. To create them, you use the decorator @property put before the method. Their purpose is to define read-only attributes (they cannot be modified).
File management, both read and write, is a very important task in Python programming. Let's see how to do the most common operations.