Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env scala -savecompiled
import scala.io
val filename = new Exception().getStackTrace.head.getFileName
val file = scala.io.Source.fromFile(filename)
for (line <- file.getLines) {
println(line)
}
file.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.