title: Is it possible to write kafka consumer received output to a file using java
body: <p>I have a Kafka Producer code written in java that writes kafka messages. And a consumer code that receives these messages.</p>
  
  <p>Is it possible to write theses received messages by consumer to any text file in java.  </p>