title: How to read a file in "to" endpoint or inside a processor using camel
body: <p>I need to read a file inside a <code>to</code> endpoint or inside a processor.</p>
  
  <p>Is there an easy way to do this? (I can always use normal <code>File IO code</code> inside processor to read the file but I am trying to find if there is a camel way of doing this).</p>
  
  <p>i.e.</p>
  
  <pre><code>from("direct:mycustomEndpoint")
  .to("readfilehere");
  </code></pre>
  
  <p>Is this possible?</p>
  
  <p>Thanks,</p>