Neron
Neron

Reputation: 1578

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

Upvotes: 7

Views: 16062

Answers (1)

Neron
Neron

Reputation: 1578

Found it, Sorry guys for bothering:

from("file://inputdir/").convertBodyTo(String.class)

Upvotes: 18

Related Questions