In some cases :paste can be your best friend (than :load ). Here is an example of how to use: paste.
scala> :paste // Entering paste mode (ctrl-D to finish) if (true) print("that was true") else print("false") [Ctrl-D] // Exiting paste mode, now interpreting. that was true
You can also use :paste to download the file using the following command :paste [path]
scala> :paste ~/Desktop/repl_seeder.scala Pasting file ~/Desktop/repl_seeder.scala... defined object test1 scala> test1.main(Str) my first scala program
Suresh Babu Feb 11 '16 at 5:33 2016-02-11 05:33
source share