{"size": 492, "ext": "scrbl", "max_stars_repo_path": "doc/io.scrbl", "max_stars_repo_name": "cjfuller/col", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "doc/io.scrbl", "max_issues_repo_name": "cjfuller/col", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "doc/io.scrbl", "max_forks_repo_name": "cjfuller/col", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.8947368421, "max_line_length": 77, "alphanum_fraction": 0.6849593496}
#lang scribble/manual

@title[#:tag "io"]{IO}

Package @code{col.io}

@defproc[(println [s t]) nil]{
Call @code{->string} (from @code{col.io}) on the input, then @code{princ} it,
followed by a newline.
}

@defproc[(slurp [fn (or string pathname)] [#:lines lines (member t nil) nil])
         (or string (listof string))]{
Slurp a file into a string, given a filename string or pathname.

If lines is non-nil, instead of a string, return a list with one string per
line (newlines stripped).
}
