Added Logic to Create Index File and Completed till executing SQL*