title: How to run an external file from within the scala interactive interpreter (REPL)?
body: <p>I have a file with several lines of scala code -- imports, list value assignments, etc. that I often use to initialize some things when using the REPL.</p>
  
  <p>Currently I just open up the file in a text editor and copy-and-paste it into the REPL, but is there a way to do it by calling the external file in a more direct manner so I don't have to copy-and-paste every time?</p>
  
  <p>In some interactive database tools like SQL Plus, it is done by typing <code>@filename</code> at the prompt.  Is there something similar in the Scala REPL?  Preceding the filename with <code>@</code> doesn't work, <code>eval</code> doesn't work either.</p>