static SuffixTree_managed loadOnDiskSuffixTree(File treeFile, File textFile) { bool toUpper = true; CloseableCharSequence text1 = iso8859_readOnlyFileAsCharSequence(textFile, noToString := true); CharSequence text = toUpper ? virtualToUpper(text1) : text1; print(l(text)); IIntMemory mem = ROMIntMemoryFromFile(treeFile); print(mem.size()); SuffixTree_managed tree = new(mem, 1); tree.fullText = text; tree.dependentCloseables = ll(text1, optCast AutoCloseable(mem)); ret tree; }