title: Powershell ,Read from a txt file and Format Data( remove lines, remove blank spaces in between)
body: <p>I am really very new to powershell. I want to use powershell to read a txt file and change it to another format.</p>
  
  <ol>
  <li>Read from a txt file.</li>
  <li>Format Data( remove lines, remove blank spaces in between)</li>
  <li>Count of records ( "T 000000002" 9 chars)</li>
  </ol>
  
  <p>and then write the output to a new file.</p>
  
  <p>I just started powershell two days ago so I don't know how to do this yet.</p>