title: StreamReader and TextReader
body: <p>I am trying to read from a pbx file using StreamReader, edit the contents and display the contents to a new file using TextReader in c#.</p>
  
  <p>This is my first developement task in a c#.</p>
  
  <p>I studied java at uni and my new job uses c#.</p>
  
  <p>Basically I have to read through a list of records contained in a pbx file from a phone system. These records however, have a line of good call records followed by a line with a few dodgy characters, followed by another line of good records.</p>
  
  <p>My task is to read through this file line by line and then write a piece of code to ignore the lines with dodgy characters and output the good records into a new file on my c:\ drive which ive called output.txt.</p>
  
  <p>I can write the while loop to take out the dodgy characters but im unsure of the c# code to read from the pbx file on my c drive and then output the edited contents to a new file called output.txt, also on my c drive.</p>
  
  <p>I'm new to c# and have explored google for hours on this. Just need a little guidance and I'm away...</p>