#include "ro_file.h" #include "iostream" using namespace std; int main () { ro_file data = ro_file("my.data"); ro_file::const_iterator ending = data.end(); for ( ro_file::const_iterator i = data.begin(); i != ending; ++i ) { cout << *i; } cout << "Size of the data: " << data.size() << endl; }
Hosted by www.Geocities.ws

1