Creating Message File and Saving in different formats