2012年3月14日 - #include #include #include using namespace std; ... std::string str; std::ifstream file("file.dat"); std::getline(file, str);.
stackoverflow.com