Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement basic file io #19

Closed
daniel-p-gonzalez opened this issue Apr 29, 2017 · 1 comment
Closed

Implement basic file io #19

daniel-p-gonzalez opened this issue Apr 29, 2017 · 1 comment

Comments

@daniel-p-gonzalez
Copy link
Owner

e.g.

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()
@daniel-p-gonzalez
Copy link
Owner Author

Dupe of #20 (zenhub wasn't refreshing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant