http://reference.nirajankhatiwada.com.np/posts/pages/python/python-file-handling-guide/
Python File Handling: Reading & Writing Files Guide