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 simple file io #20

Open
3 tasks
daniel-p-gonzalez opened this issue Apr 29, 2017 · 0 comments
Open
3 tasks

Implement simple file io #20

daniel-p-gonzalez opened this issue Apr 29, 2017 · 0 comments
Assignees

Comments

@daniel-p-gonzalez
Copy link
Owner

daniel-p-gonzalez commented Apr 29, 2017

Implement first pass minimal file io.

e.g.

in_file = open('file.txt', 'r')
out_file = open('copy.txt', 'w')

for line in in_file:
  out_file.write(line)
end

Tasks:

  • Add wrapper around {i,o}fstream for opening/closing files
  • Wrap get_line in for loop iterator for file object
  • Auto closing of file handle when leaving scope (*disallow passing file handle to another actor)
  • Passing file handles to another actor would be unsafe sharing of state.
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