git log --stat
ifstream f1;
ifstream f2;
f1.open("viruses/virus1.cs");
f2.open("file2");
bool result = true;
char buf1[256];
char buf2[256];
while ( ! f1.eof() && !f2.oef() )
{
f1.read(buf1, 256);
f2.read(buf2, 256);
if (f1.gcount() != f2.gcount())
{
result = false;
break;
}
if (memcmp(buf1, buf2, f1.gcount()) !=0)
{
result = false;
break;
}
}