title: Multi-Line String to Single-Line String conversion in PowerShell
body: <p>I have a text file that has multiple 'chunks' of text. These chunks have multiple lines and are separated with a blank line, e.g.:</p>
  
  <pre>This is an example line
  This is an example line
  This is an example line
  
  This is another example line
  This is another example line
  This is another example line</pre>
  
  <p>I need these chunks to be in single-line format e.g.</p>
  
  <pre>This is an example lineThis is an example lineThis is an example line
  
  This is another example lineThis is another example lineThis is another example line</pre>
  
  <p>I have researched this thoroughly and have only found ways of making whole text files single-line. I need a way (preferably in a loop) of making an array of string chunks single-line. Is there any way of achieving this?</p>
  
  <p>EDIT:
  I have edited the example content to make it a little clearer.</p>