<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kankinkon</author_name>
  <author_url>https://blog.hatena.ne.jp/kankinkon/</author_url>
  <blog_title>Afro-Blue</blog_title>
  <blog_url>https://kankinkon.hatenadiary.org/</blog_url>
  <categories>
    <anon>C言語</anon>
  </categories>
  <description>ファイル入出力でよく使う関数について整理する。 open処理は以下のように行う。 fopen関数でストリームポインタを取得する。ファイルが存在しない場合を考慮する。 FILE *fp; if ((fp = fopen(filename, &quot;r&quot;)) == NULL) { exit(EXIT_FAILURE); } ファイルからの入力は様々な関数が用意されている。 fscanf 第一引数にストリームポインタ、第二引数に入力文字の書式、第三引数に入力したい変数のポインタを指定 int val; fscanf(fp, &quot;%d&quot;, &amp;val); close処理は以下のように行う。 fclose関数で行…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkankinkon.hatenadiary.org%2Fentry%2F20120306%2F1330982536&quot; title=&quot;ファイル入出力 - Afro-Blue&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>2012-03-06 06:22:16</published>
  <title>ファイル入出力</title>
  <type>rich</type>
  <url>https://kankinkon.hatenadiary.org/entry/20120306/1330982536</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
