read and store frequency from int file