extract freqiuencies from the file