aboutsummaryrefslogtreecommitdiffstats
path: root/lineio.txi
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:28 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:28 -0800
commit87b82b5822ca54228cfa6df29be3ad9d4bc47d16 (patch)
tree1eb4f87abd38bea56e08335d939e8171d5e7bfc7 /lineio.txi
parentbd9733926076885e3417b74de76e4c9c7bc56254 (diff)
downloadslib-87b82b5822ca54228cfa6df29be3ad9d4bc47d16.tar.gz
slib-87b82b5822ca54228cfa6df29be3ad9d4bc47d16.zip
Import Upstream version 2d2upstream/2d2
Diffstat (limited to 'lineio.txi')
-rw-r--r--lineio.txi45
1 files changed, 45 insertions, 0 deletions
diff --git a/lineio.txi b/lineio.txi
new file mode 100644
index 0000000..34d42d5
--- /dev/null
+++ b/lineio.txi
@@ -0,0 +1,45 @@
+
+@defun read-line
+
+
+@defunx read-line port
+Returns a string of the characters up to, but not including a
+newline or end of file, updating @var{port} to point to the
+character following the newline. If no characters are available, an
+end of file object is returned. The @var{port} argument may be
+omitted, in which case it defaults to the value returned by
+@code{current-input-port}.
+@end defun
+
+@defun read-line! string
+
+
+@defunx read-line! string port
+Fills @var{string} with characters up to, but not including a newline or end
+of file, updating the @var{port} to point to the last character read
+or following the newline if it was read. If no characters are
+available, an end of file object is returned. If a newline or end
+of file was found, the number of characters read is returned.
+Otherwise, @code{#f} is returned. The @var{port} argument may be
+omitted, in which case it defaults to the value returned by
+@code{current-input-port}.
+@end defun
+
+@defun write-line string
+
+
+@defunx write-line string port
+Writes @var{string} followed by a newline to the given @var{port} and returns
+an unspecified value. The @var{Port} argument may be omitted, in
+which case it defaults to the value returned by
+@code{current-input-port}.@refill
+@end defun
+
+@defun display-file path
+
+
+@defunx display-file path port
+Displays the contents of the file named by @var{path} to @var{port}. The
+@var{port} argument may be ommited, in which case it defaults to the
+value returned by @code{current-output-port}.
+@end defun