aboutsummaryrefslogtreecommitdiff
path: root/example.cc
blob: 26bf404890e788d17c1294d08d659f628529bfbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "istream/stream.h"

#include <string>
#include <iostream>

int main() {
	dictzip::Istream stream("gcide.dict.dz");

	// Print the GCIDE definition of _Accession_
	std::string data;
	data.reserve(1453);

	stream.seekg(245808);
	stream.read(const_cast<char*>(data.data()), 1453);

	std::cout << data.c_str() << std::endl;
}