<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minegishirei</author_name>
  <author_url>https://blog.hatena.ne.jp/minegishirei/</author_url>
  <blog_title>プログラミング学習サイト</blog_title>
  <blog_url>https://minegishirei.hatenablog.com/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>ファイル読み込み ReadModeによるファイル読み込み Haskellにおいてのファイル読み込みはopenFile関数を使用します。 子の関数を使用するためには、System.IOを事前にimportしておく必要があります。 以下のサンプルコードでは、input.txtファイルを読み取り専用で開き、inpStr変数に格納しています。 import System.IO import Data.Char(toUpper) main :: IO () main = do inh &lt;- openFile &quot;input.txt&quot; ReadMode inpStr &lt;- hGetLine inh prin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fminegishirei.hatenablog.com%2Fentry%2F2023%2F12%2F15%2F093109&quot; title=&quot;Haskellでファイルを読み書きする方法【Haskell入門】 - プログラミング学習サイト&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>2023-12-15 09:31:09</published>
  <title>Haskellでファイルを読み書きする方法【Haskell入門】</title>
  <type>rich</type>
  <url>https://minegishirei.hatenablog.com/entry/2023/12/15/093109</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
