#include "stdafx.h" Yj%U
>),8
OtSL*'7>
#include <iostream> c/Qt Ot
#include <fstream> J~=n`pW
#include <sstream> Pf*^ZB%
#include <iterator> s~X+*@.
using namespace std; yphS'AG
_,q) hOI
int main(int argc, char* argv[]) AoY-\E
{ $m7?3/YG
ifstream ifs("test.txt"); f @8mS
if(!ifs) pa#d L!J
return false; #u2J;9P
"-_fv5jL
ostringstream oss; ]FD'5p{
istream_iterator<char> inpos(ifs); t'9*R7=
istream_iterator<char> endpos; ~SQ?BoCI[
ostream_iterator<char> out(oss); N03G>fZ
std::copy(inpos, endpos, out); R,)}>X|<
string& szData = oss.str(); Xm+8
'iy*^A `Y
const char * cc = szData.c_str(); Nb?w|Ne(T
// cout << (long)szData << endl; CxGx8*<X
// cout << (long)oss.str().c_str() << endl; *ohL&