
#include <fstream>
#include <vector>

#include "CompressedFile.hpp"

using namespace std;

typedef vector<char> vchar;

int main()
{
	vchar buf(5000);
	CompressedFile f("comptest.dat");
	ifstream ost("memory_usage0.dat");
	int len;

	while(true)
		{
			len = ost.readsome(&buf[0],buf.size());
			if(len==0) break;
			f.write(&buf[0],len);
		}
	
	return 0;
}
