How can I merge a few big files into 1 using python 3? it should work like the bash command
cat * > outfile
but it should work on Linux, Windows and OS X.
If I use
outfile = open("outfile", "wb")
for file in os.listdir():
outfile.write(file.read())
it uses too much RAM