From 32693922472397beb0f835935e197ab59362d954 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 12 Apr 2019 21:49:32 -0700 Subject: 5086 --- subx/Readme.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'subx/Readme.md') diff --git a/subx/Readme.md b/subx/Readme.md index 7f9ccd49..f842adfd 100644 --- a/subx/Readme.md +++ b/subx/Readme.md @@ -602,13 +602,21 @@ allocated memory for it.)_ * `slice-ends-with?`: compares the end of a slice with a string #### writing to disk +* `write`: string -> file + - Can also be used to cat a string into a stream. + - Will abort the entire program if there isn't enough room. * `write-stream`: stream -> file + - Can also be used to cat one stream into another. + - Will abort the entire program if there isn't enough room. * `write-buffered`: string -> buffered-file * `write-slice`: slice -> buffered-file * `flush`: buffered-file * `print-byte`: buffered-file, int #### reading from disk +* `read`: file -> stream + - Can also be used to cat one stream into another. + - Will silently stop reading when destination runs out of space. * `read-byte`: buffered-file -> byte * `read-line`: buffered-file -> stream -- cgit 1.4.1-2-gfad0