aboodmanna's blog

By aboodmanna, 11 years ago, In English

Hello EveryOne how can i read file (.in) in java 7 ?

im using Scanner:

Scanner input=new Scanner(new File("xyz.in")); // but still give me RunTime error

how can i fixed this issue ?

  • Vote: I like it
  • -12
  • Vote: I do not like it

»
11 years ago, hide # |
 
Vote: I like it +29 Vote: I do not like it

There's no problem with that line. Make sure there's a file called "xyz.in" in the project folder.