#include <iostream>
#include <fstream>
using std::cout;
using std::endl;
int main()
{
unsigned char buf[1024] = { NULL };
std::ifstream ifs("d:\\data.txt");
ifs.read((char *)buf, sizeof buf);
cout << buf << endl;
ifs.close();
return 0;
}
/*
run:
c c++
c# java php python
*/