Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slurp doesn't close slurpee #7244

Closed
scabug opened this issue Mar 12, 2013 · 2 comments
Closed

Slurp doesn't close slurpee #7244

scabug opened this issue Mar 12, 2013 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Mar 12, 2013

On Windows, can't delete a file after slurping.

import scala.compat.Platform.EOL
import scala.io.Codec
import scala.reflect.io._
import java.io.{ File => JFile }

object Test extends App {
  val j = new JFile(args(0))
  val s = new File(j).slurp()
  Console println s.lines.mkString(s"${args(0)} {$EOL", EOL, s"$EOL}$EOL")
  val res = j.delete()
  Console println s"Deleted? $res"
}
@scabug
Copy link
Author

scabug commented Mar 12, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7244?orig=1
Reporter: @som-snytt
Affected Versions: 2.11.0-M1

@scabug
Copy link
Author

scabug commented Mar 12, 2013

@adriaanm said:
scala/scala#2237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants