Concatenating text files in Python We can use the built-in inputfile module to concatenate files while optionally applying filters and transformations to each line, without abusing nested with blocks and for loops. more ...