title: How to skip a certain line when reading a Java file using FileReader?
body: <p>I am reading in a file like;</p>
  
  <pre><code>FileReader reader = new FileReader(source);
  FileWriter writer = new FileWriter((destination));
  
  int char = 0;
  while ((char = reader.read()) != -1) {
    writer.write(char);
  }
  </code></pre>
  
  <p>Basically, I would like to first check if the source file contains a certain line, followed by a newline, and if so, I would like to skip these line from being written to the destination file.</p>
  
  <p>Note the newline that I would like to skip would have been added to the source file using;</p>
  
  <pre><code>System.getProperty("line.separator").getBytes()
  </code></pre>
  
  <p>Many thanks!</p>