All pastes #927784 Raw Edit

Miscellany

public cpp v1 · immutable
·published 2008-03-04 15:28 UTC
rendered paste body
std::string _str;_file.seekg(std::ios::beg);	while(!_file.eof())	{		if(_file.good())		{			// create local buffer			std::string _buf;			std::getline(_file, _buf);                        // append to _str . alt: _str.append(_buf); 			_str += (_buf);		}	};