static void Main(string[] args) { DataBase test = new DataBase("test.txt"); Record rec = test.ReadRecord(6); test.indexes.Add(new Index("test.txt")); test.indexes[0].CreateIndex(0, test.file_keys); Console.ReadKey(); }