Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Блог пользователя aboodmanna

Автор aboodmanna, 9 лет назад, По-английски

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 ?

  • Проголосовать: нравится
  • -12
  • Проголосовать: не нравится

»
9 лет назад, # |
  Проголосовать: нравится +29 Проголосовать: не нравится

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