fixed indexed file reader to open in 'rb' mode