I want to read some data from a text file. The name of the file is 'freq.txt' and it is in the same directory where I compiled the code. The text file looks like:
100 cm-1
200 cm-1
300 cm-1
The number of lines may vary. I just want to read the number for further processing. Can anyone help me to do this?