#include "stdafx.h" ;`Eie2y{M
@|! 9~F
#include <iostream> &"]Uh
#include <fstream> t>p!qKrE'J
#include <sstream> E#?*6/
#include <iterator> ~=qJSb
using namespace std; Q|/uL`_ni
!m)P*Lw
int main(int argc, char* argv[]) \lwYDPY:
{ 1~/?W^ir
ifstream ifs("test.txt"); |_ ZD[v S
if(!ifs) h$7rEs
return false; oxT..=-
h>V8YJ
ostringstream oss; VU6nu4
istream_iterator<char> inpos(ifs); ^c",!Lp}{
istream_iterator<char> endpos; Mr'P0^^
ostream_iterator<char> out(oss); /Ud<4j-
std::copy(inpos, endpos, out); LnZzY0
string& szData = oss.str(); a-w=LpVM
Ba==Ri8$
const char * cc = szData.c_str(); Gh;Ju[6
// cout << (long)szData << endl; C;7?TZ&x