std/os/file▲toc

File operations.

.

fun read-text-file( path : pathstd/os/path/path: V ) : <exnstd/core/exn/exn: (E, V) -> V,fsysstd/core/fsys: X> stringstd/core/types/string: V

Read a text file synchronously (using UTF8 encoding).

fun write-text-file( path : pathstd/os/path/path: V, content : stringstd/core/types/string: V, create-dir : ? boolstd/core/types/bool: V ) : <exnstd/core/exn/exn: (E, V) -> V,fsysstd/core/fsys: X> ()

Write a text file synchronously (using UTF8 encoding).

private import std/core/typesstd/core/types, std/core/hndstd/core/hnd, std/core/exnstd/core/exn, std/core/boolstd/core/bool, std/core/orderstd/core/order, std/core/charstd/core/char, std/core/intstd/core/int, std/core/vectorstd/core/vector, std/core/stringstd/core/string, std/core/sslicestd/core/sslice, std/core/liststd/core/list, std/core/maybestd/core/maybe, std/core/eitherstd/core/either, std/core/tuplestd/core/tuple, std/core/showstd/core/show, std/core/debugstd/core/debug, std/core/delayedstd/core/delayed, std/core/consolestd/core/console, std/corestd/core, std/os/pathstd/os/path, std/os/dirstd/os/dir