// Index from/to disk
RLCSAWrapper(FILE *file, char const *filename)
: rlcsa(new CSA::RLCSA(std::string(filename)))
// Index from/to disk
RLCSAWrapper(FILE *file, char const *filename)
: rlcsa(new CSA::RLCSA(std::string(filename)))
// Saving type info:
if (std::fwrite(&type, 1, 1, file) != 1)
throw std::runtime_error("RLCSAWrapper::Save(): file write error (type flag).");
// Saving type info:
if (std::fwrite(&type, 1, 1, file) != 1)
throw std::runtime_error("RLCSAWrapper::Save(): file write error (type flag).");