Running a Java program with input from a file
Posted
by Katy
on Stack Overflow
See other posts from Stack Overflow
or by Katy
Published on 2010-03-13T00:02:21Z
Indexed on
2010/03/13
0:07 UTC
Read the original article
Hit count: 231
I am writing a program that reads the input from a file and then prints it to the screen. When I run it without taking the input from the file, it works perfectly fine. However, every time I try to run it from the file it gives me an "Exception in thread "main" java.util.NoSuchElementException: No line found at" error that occurs every place the input is suppose to be read. I have no idea what is going on.
© Stack Overflow or respective owner