public void Open() { readingCache = new ReadingCache(indexFileName); int version = readingCache.ReadInt32(); if (version != StreamSource.VERSION) { throw new NotSupportedException("The index file version is incorrect. Please check the file used is what you want or rebuild the index file."); } }