<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thr3a</author_name>
  <author_url>https://blog.hatena.ne.jp/thr3a/</author_url>
  <blog_title>動かざることバグの如し</blog_title>
  <blog_url>https://blog.turai.work/</blog_url>
  <categories>
    <anon>elixir</anon>
  </categories>
  <description>環境 Elixir 1.x 基本的な読み書き File.write/2 で書き込み、 File.read/1 で読み込みできる。 iex&gt; File.write &quot;sample.txt&quot;, &quot;Hello&quot; :ok iex&gt; File.read &quot;sample.txt&quot; {:ok, &quot;Hello&quot;} 読み込んだときに２要素のタプルを返してくるのがポイント こういう感じで分岐できる case File.read(&quot;sample.txt&quot;) do {:ok, content} -&gt; IO.inspect content {:error, reason} -&gt; IO.puts &quot;error: #{re…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20210110%2F1610249691&quot; title=&quot;Elixirでファイルの読み書きまとめ - 動かざることバグの如し&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-10 12:34:51</published>
  <title>Elixirでファイルの読み書きまとめ</title>
  <type>rich</type>
  <url>https://blog.turai.work/entry/20210110/1610249691</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
