{"published":"2007-04-13 18:39:48","height":"190","description":"C++\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u3044\u308b\u3068\u304d\u306e\u3053\u3068\uff65\uff65\uff65. ifstream\u304b\u30891\u6587\u5b57\u305a\u3064\u6587\u5b57\u3092\u5f15\u3063\u5f35\u3063\u3066\u304f\u308b\u3093\u3060\u3051\u306a\u3093\u3060\u3051\u3069\u30012\u3064\u3072\u3063\u304b\u304b\u3063\u305f\u3002 \u4e00\u3064\u76ee. char c; while (ifs >> c) { // ... } ifs.seekg(0); while (ifs >> c) { // ... } 2\u56de\u76ee\u304c\u56de\u3089\u306a\u3044\u3002\u3053\u308c\u306f\u3001ifs\u306e\u4e2d\u306eeof\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30d3\u30c3\u30c8\u304c\u6b8b\u3063\u3066\u308b\u304b\u3089\u3002 } ifs.clear(); ifs.seekg(0); while (ifs >> c) { \u3068\u3084\u308c\u3070\u3046\u307e\u304f\u3044\u304f\u3002\u3082\u3046\u3072\u3068\u3064\u306f\u3001whitespace. istream\u541b\u306f ifs >> c \u3057\u305f\u3068\u304d\u306bwhitesp\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20070413%2F1176457188\" title=\"s/stdio.h/iostream/ - methane\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","blog_url":"https://methane.hatenablog.jp/","title":"s/stdio.h/iostream/","provider_name":"Hatena Blog","author_name":"methane","author_url":"https://blog.hatena.ne.jp/methane/","image_url":null,"blog_title":"methane\u306e\u30d6\u30ed\u30b0","width":"100%","categories":["Program"],"provider_url":"https://hatena.blog","url":"https://methane.hatenablog.jp/entry/20070413/1176457188","type":"rich"}