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).
Abstract: Modern computers enhance I/O performance through parallel I/O, yet due to the scalability issues of file systems, parallel I/O cannot achieve the desired performance improvement. In this ...