title: Read file in grails
body: <p>So I have a few .drlt files (normal txt files that serves me as templates for rule engine) and 
  I need to read them and put in to some static string variable in bootstrap of application.</p>
  
  <p>I just cannot figure out <strong>where</strong> to put it in grails application and <strong>how</strong> to read them.</p>
  
  <p>I've tried put them to src/java and read them from src/grails, domain, service etc. None of that worked. The only thing that worked is to put it into grails-app/conf and read them like this:</p>
  
  <pre><code>def classLoader = Thread.currentThread().contextClassLoader
  def fileReader = classLoader.getResourceAsStream('my-file.drlt').newReader()
  </code></pre>
  
  <p>But I don't want to put my template files in config directory.
  I've read many posts and 'solutions' for this problem but non of them are good solutions. Is it really possible that this is unable to do nice in such a stable framework as Grails?</p>
  
  <p>Thanks for any help,
  Ivan</p>