java.io.IOException

Stream closed This is my error I get when I try to run my program. at also says:

Samebug tips1

When you iterate over the lines of a scala.io.Source with source.getLines, make sure you do not close the source until you processed the iterator.


rprp

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web273

  • via Stack Overflow by JmRag
    ,
  • Stack trace

    • java.io.IOException: Stream closed This is my error I get when I try to run my program. at also says: at java.io.BufferedReader.ensureOpen(Unknown Source) at java.io.BufferedReader.readLine(Unknown Source) at java.io.BufferedReader.readLine(Unknown Source)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    jstrayerjstrayer
    Once,
    rprp
    Once,
    zbalintzbalint
    Once,
    gamebusterzgamebusterz
    22 times, last one
    harshgharshg
    Once,
    17 more bugmates