title: Combine multiple lines in a RDD to a single line
body: <p>I have the following scenario:
  val rdd = sc.textFile("textfile");</p>
  
  <p>"textfile" is a multi line file. All I need is to concatenate multiple lines into a single line before saving it back again in a file format.</p>
  
  <p>I researched a lot around this. However, couldnt find a solution to the problem.</p>
  
  <p>Thanks a lot for all your help</p>
  
  <p>Thanks,
  Ganesh</p>