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):
    pass
Elegant way of combining files - Python