https://tutorial.eyehunts.com/python/python-file-handling-introduction/
Python File Handling Introduction | Create, Open, Write & Delete