can anyone help me that what is difference between flat files and index files