Skip to content

Add write(), read(), read_all(), join() #3

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

Merged
merged 9 commits into from
Aug 5, 2023
Merged

Add write(), read(), read_all(), join() #3

merged 9 commits into from
Aug 5, 2023

Conversation

healeycodes
Copy link
Owner

@healeycodes healeycodes commented Aug 1, 2023

The big i/o update.

Add via builtins:

  • write(file_path: string, data: (string | number): nil.
  • read(file_path: string, read_function: (chunk: string) => nil): nil.
  • join(x: string, string): string
  • join(x: list, list): list

Add via stdlib:

  • read_all(file_path: string): string

Tests added for all the above, including some error message tests.

@healeycodes healeycodes changed the title Add read(), read_all(), join() Add write(), read(), read_all(), join() Aug 5, 2023
@healeycodes healeycodes merged commit 4abec48 into main Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant