2 ms·
I think you can also do something like this if you want it to be readable with (open("foo.txt") as foo_file, open("bar.txt") as bar_file,
by lunixbochs 6y ago
I think you can also do something like this if you want it to be readable
with (open("foo.txt") as foo_file,
open("bar.txt") as bar_file,
open("baz.txt", "w") as baz_file):
baz_file.write(foo_file.read() + bar_file.read())