path = 'path/to/file/location/'
with open(path + 'result.txt', 'w') as result:
    files = [open(path + 'file%d.txt' % (n + 1)) for n in range(16)]
form = ', '.join('{}' for f in files) + '\n'
for lines in zip(*files):
    result.write(form.format(*map(str.rstrip, lines)))
for f in files:
    f.close()
Elegant way of combining files - Python