import os
root='./jointFile'
filelist=os.listdir('./jointFile')
print(filelist)
with open('all.txt','a+',encoding='utf-8') as newfile:
for file in filelist:
print(file)
txt=open(os.path.join(root,file),encoding='utf-8')
newfile.write(txt.read())
newfile.close()