文件流转串流

inline stringstream read(std::string filepath) {
    ifstream fi(filepath);
    stringstream out;
    out << fi.rdbuf();
    cout<<out.str()<<endl;
    fi.close();
    return out;
}

posted on 2021-06-15 22:34  lodger47  阅读(47)  评论(0)    收藏  举报

导航