title: Opening a local file in Groovy
body: <p>I want to use a <code>File</code> object to read a local file in the same directory as a groovlet. However, using a relative path to the file (either <code>"example.txt"</code> or <code>"./example.txt"</code>) doesn't do the trick. If I give it an absolute path (e.g., <code>"/example.txt"</code>), then it works.</p>
  
  <p>Is there any way to get the working directory or context path of the groovlet programmatically?</p>