Create function to create messages

in files .txt