object Main extends App {
println("Hello, Friends!")
}
scala> :paste
// Entering paste mode (ctrl-D to finish)
object Main extends App {
println("Hello, Friends!")
}
// Exiting paste mode, now interpreting.
defined object Main
scala> Main.main(null)
Hello, Friends!
scala> :load yourScalaCode.txt
defined object Main
Hello, Friends!