Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Camel Read File Content

Is there a way(api function) to read the whole content of a file(or line by line) in camel without writing a converter or any java code?

Thanks

like image 473
Neron Avatar asked Feb 18 '13 13:02

Neron


1 Answers

Found it, Sorry guys for bothering:

from("file://inputdir/").convertBodyTo(String.class)
like image 172
Neron Avatar answered Sep 29 '22 17:09

Neron