write message in the core with rank = 0, keep replacing a line by a new message
the message to write, not to trim