<human>:  Can I read and write file in one line with Python?
<bot>: Here is some code to write the content of file `xxx.mp4` to file `f`

f.write(open('xxx.mp4', 'rb').read())

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.