Someone please edit my title to make this question more clear.
It’s easier to show using an example:
Contents of myfile.txt:
10/05/2011: 10
10/05/2011: 45.4
10/05/2011: 12.1
I want to read the numbers after the date (10, 45.4, 12.1) using BufferedReader and store in a list. How would I do that? I am using readLine() method right now to read my data, but reads the entire line. I don’t want to store date in my list, just the numbers. Is it possible?
Yes of course, although you will have to read the entire line first, once you have done that you can write a simple regular expression to pick what you want in this case numbers.
Alternatively since the numbers are always after “:”, this will also work