Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import shutil
- import webbrowser
- first_file = 'test.txt'
- second_file = 'test2.txt'
- merged_file = 'merged.txt'
- with open(merged_file, 'wb') as wfd:
- for f in [first_file, second_file]:
- with open(f, 'rb') as fd:
- shutil.copyfileobj(fd, wfd, 1024*1024*10)
- webbrowser.open(merged_file)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement