read from file index