Hey =) I am a little bit stuck here =)
I have this file that I want to scan that contains some data. Such as
12-Jan-2012,815,847.5,849.5,804.55,658784
11-Jan-2012,799.5,812,818,796.5,634561
etc.
I need to scan the file and print it to console. But at first its ok but at the end I get an error
Exception in thread "main" java.util.NoSuchElementException: No line found
at java.util.Scanner.nextLine(Scanner.java:1516)
at readfile.readFile(readfile.java:25)
at Test.main(Test.java:9)
I think it is something to do with my usage of Scanner.nextLine method.... Could someone help me out? Here is my code...
And another question if I may =)
I need to save this data as a separate file which should be an HTML template. I have really no clue how to do that, or if it is even possible =)
It is my first post btw
If those are really nooby questions please dont be too harsh on me