// WormFile test main // Robin Rowe 2017/3/21 #include #include #include using namespace std; int main() { portable::WormFile wormFile; const char* filename = "test.wrm"; if(!wormFile.Open(filename)) { cout << "Can't open "< buffer(length); if(!wormFile.Read(&buffer[0],length)) { cout << "Can't read "<< filename << endl; return 5; } if(strcmp(data,&buffer[0])) { cout <<"Blob data mismatch" << endl; return 6; } cout << "SUCCESS!" << endl; return 0; }