read in using Scanner

I know how to read in from the keyboard using the Scanner class but what I'm trying to accomplish requires that I read from a text file each line containing 2 numbers like this:

5 10

5 15

5 25

6 18

and so on.

now my question is how would I do that with Scanner, breaking each number up into a seperate variable and only reading 1 line at a time?

Thanks

[402 byte] By [Zebu00a] at [2007-11-27 1:14:09]
# 1
Are you saying you know how to do this with Scanner, if the input was from theconsole instead of a file?
DrLaszloJamfa at 2007-7-11 23:49:29 > top of Java-index,Java Essentials,New To Java...
# 2
yes
Zebu00a at 2007-7-11 23:49:29 > top of Java-index,Java Essentials,New To Java...
# 3
Hint: read the API: http://java.sun.com/javase/6/docs/api/java/util/Scanner.html
DrLaszloJamfa at 2007-7-11 23:49:29 > top of Java-index,Java Essentials,New To Java...
# 4
thanks that helped
Zebu00a at 2007-7-11 23:49:29 > top of Java-index,Java Essentials,New To Java...
# 5
That's the second time today, "read the API" worked. I wonder if there's something more general going on. Hmmm...
DrLaszloJamfa at 2007-7-11 23:49:29 > top of Java-index,Java Essentials,New To Java...