std::ifstream 打开文件,获得文件流 并赋给std::string
摘要:
// 打开文件,获得文件流 std::ifstream inFile(fileName.c_str(), std::ios::in | std::ios::binary); std::ostringstream oss; oss << inFile.rdbuf(); std::string buffer = oss.str(); inFile.close(); 阅读全文
posted @ 2011-05-20 18:32
几百人有爱
阅读(978)
评论(0)
推荐(0)
浙公网安备 33010602011771号