title: How to read a file from classpath without external dependencies?
body: <p>Is there a one-liner in Scala to read a file from classpath without using external dependencies, e.g. commons-io?</p>
  
  <pre><code>IOUtils.toString(getClass.getClassLoader.getResourceAsStream("file.xml"), "UTF-8")
  </code></pre>