use text file to store the avro events