<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fa11enprince</author_name>
  <author_url>https://blog.hatena.ne.jp/fa11enprince/</author_url>
  <blog_title>Gobble up pudding</blog_title>
  <blog_url>https://gup.monster/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>2020-07-30 C++でのファイルの読み込み方法のまとめです。 よく使われるCでもできる方法以外の 標準C++ライブラリを使ったファイル読込み方法です。 Visual C++ 2013とg++で確認しました ４パターン用意しました。 1. char *型に一行ずつ読込む 2. string型に一行ずつ読込む 3. char *型に全部読込む 4. string型に全部読込む テスト用ファイル(test.txt) 123456 89※このファイルは1行目は改行ありで、2行目は改行なしです (ただし、Vimなどのエディタでは改行なしの最終行を作ることはできないことに注意)。 1. char*…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgup.monster%2Fentry%2F2014%2F04%2F03%2F233500&quot; title=&quot;C++でファイル読込み パターン別まとめ - Gobble up pudding&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>https://cdn-ak.f.st-hatena.com/images/fotolife/f/fa11enprince/20150719/20150719065407.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-04-03 23:35:00</published>
  <title>C++でファイル読込み パターン別まとめ</title>
  <type>rich</type>
  <url>https://gup.monster/entry/2014/04/03/233500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
