os.path.join (folder, filename) ensures the path is correct for the system. On Windows, it uses backslashes (reports\summary.txt); on Linux and macOS it uses forward slashes (reports/summary.txt).
The Linux command line is a powerful tool that gives you complete control over your system. But to unleash its full potential, you must understand the environment in which it operates. One crucial ...