This question is related to Python concatenate text files
I have a list of file_names, like [\'file1.txt\', \'file2.txt\', ...].
file_names
[\'file1.txt\', \'file2.txt\', ...].
I wou
Instead of making python read multiple files, pipe the contents from the shell and read it from stdin. This will also make your program more flexible as you can pass in any set of files into your python program without changing your code.