title: send file content with a message queue C
body: <p>I'm looking for the best way to read a file and send the contents via a message queue.
  I tried to read the file line by line and insert the contents of the file into an array, but maybe not the best way.
  I was wondering is there another way, perhaps it's better to send the whole file and then read it to the process that receives it.
  Do you have any suggestions?
  thanks in advance.</p>