Skip to content

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

Merged
healeycodes merged 9 commits into
mainfrom
feat-io
Aug 5, 2023
Merged

Add write(), read(), read_all(), join()#3
healeycodes merged 9 commits into
mainfrom
feat-io

Conversation

@healeycodes

@healeycodes healeycodes commented Aug 1, 2023

Copy link
Copy Markdown
Owner

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