You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in_file = open('file.txt', 'r')
out_file = open('copy.txt', 'w')
for line in in_file:
out_file.write(line)
end
# maybe copy-on-write to avoid this being necessary
# e.g. don't allow another actor to hold a reference, and close on leaving scope
in_file.close()
out_file.close()
The text was updated successfully, but these errors were encountered:
e.g.
The text was updated successfully, but these errors were encountered: