Current section
Files
Jump to
Current section
Files
gen/docs/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>gleam_file</title>
<link rel="stylesheet" href="./index.css" type="text/css" />
</head>
<body>
<header class="page-header">
<h2>
gleam_file<!-- - -->
</h2>
</header>
<div class="page">
<nav class="sidebar">
<a class="sidebar-toggle" href="#">
<svg
aria-hidden="true"
focusable="false"
data-prefix="fas"
data-icon="bars"
class="svg-inline--fa fa-bars fa-w-14"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512"
>
<path
fill="#fff"
d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"
>
</path>
</svg>
</a>
<h2>Pages</h2>
<ul>
<li><a href="./index.html">README</a></li>
</ul>
<h2>Links</h2>
<ul>
<li><a href="https://gitlab.com/greggreg/gleam_file">Source</a></li>
</ul>
<h2>Modules</h2>
<ul>
<li><a href="./gleam/file/">gleam/file</a></li>
<li><a href="./gleam/path/">gleam/path</a></li>
<li><a href="./gleam/posix_errors/">gleam/posix_errors</a></li>
</ul>
</nav>
<main class="content">
<h1>gleam_file</h1>
<p>File, Directory, and Path handling in Gleam</p>
<h2>Documentation</h2>
<p>https://hexdocs.pm/gleam_file/</p>
<h2>Installation</h2>
<p>Add <code>gleam_file</code> to your <code>rebar.config</code> dependencies:</p>
<pre><code class="language-erlang">{deps, [
gleam_file
]}.
</code></pre>
<h2>Quick start</h2>
<pre><code class="language-rust">import gleam/file
> file.read_to_bitstring("hi.txt")
Ok(<<"Hello from the contents of hi.txt">>)
</code></pre>
</main>
</div>
<script>const pride = () => document.querySelector('body').classList.toggle('show-pride')</script>
<a class="pride-button" onclick="pride()">✨</a>
<footer class="pride" onclick="pride()">
<div class="blue">Lucy</div>
<div class="pink">says</div>
<div class="white">trans</div>
<div class="pink">rights</div>
<div class="blue">✨</div>
</footer>
</body>
</html>