<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kagasu</author_name>
  <author_url>https://blog.hatena.ne.jp/kagasu/</author_url>
  <blog_title>備忘録</blog_title>
  <blog_url>https://kagasu.hatenablog.com/</blog_url>
  <categories>
    <anon>C/C++</anon>
  </categories>
  <description>Ⅰ. はじめに STL を使ってファイルを全て読み込む（全行読み込む）方法です。※追記 C++でShift-JIS, UTF-8, UTF-16 BOM有無とエンディアンを考慮してファイルの読み込みをする - 備忘録 Ⅱ. サンプル test.txt aiueo Source.cpp #include &lt;iostream&gt; #include &lt;fstream&gt; #include &lt;string&gt; int main() { std::ifstream ifs(&quot;test.txt&quot;); std::string str((std::istreambuf_iterator&lt;char&gt;(ifs)), s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkagasu.hatenablog.com%2Fentry%2F2017%2F05%2F01%2F215219&quot; title=&quot;C++ ファイルを全て読み込む - 備忘録&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/k/kagasu/20170501/20170501215013.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-05-01 21:52:19</published>
  <title>C++ ファイルを全て読み込む</title>
  <type>rich</type>
  <url>https://kagasu.hatenablog.com/entry/2017/05/01/215219</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
