#include "stdafx.h" >d(~#Z`
$1SPy|y
#include <iostream> zU,9T
#include <fstream> gK+4C
#include <sstream> @Y?#Sl*
#include <iterator> R1s`z|?
using namespace std; AKY1o.>z
Mhm@R@
int main(int argc, char* argv[]) w{{gu1#]G
{ .nO\kg oK
ifstream ifs("test.txt");
&U{#Kt5q
if(!ifs) C/_ZUF(V
return false; @hl.lq
jxP;>K7O
ostringstream oss; $ux,9H'[
istream_iterator<char> inpos(ifs); +*\u :n
istream_iterator<char> endpos; Cw~q4A6'
ostream_iterator<char> out(oss); Vo4,@scG
std::copy(inpos, endpos, out); pXtl
6K%
string& szData = oss.str(); .L+6 $8m
?#Ge.D~u
const char * cc = szData.c_str(); c|f<u{'
// cout << (long)szData << endl; l\f*d6o
// cout << (long)oss.str().c_str() << endl; J;S
(>c
cout<< cc; &PL8