Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

aboodmanna's blog

By aboodmanna, 9 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

»
9 years ago, # |
  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.