read messages from a file, then send to kafka server.