Please do not post the same question twice to the forums.
http://www.javaprogrammingforums.com/java-theory-questions/10784-how-use-scanner-files.html
I am locking this thread