title: Printwriter to print new lines
body: <p>I am printing a text file using Printwriter, in servlets.</p>
  
  <pre><code>PrintWriter writer = response.getWriter();
  while ((text = reader.readLine()) != null) 
          {
      writer.print(text);
          }
  </code></pre>
  
  <p>Though this prints the txt file, it is not printing any new lines.</p>
  
  <p>I've tried </p>
  
  <pre><code>LINE ="\n"
  writer.print(text + LINE);
  </code></pre>
  
  <p>doesn't work.</p>
  
  <p>also tried using println, still no use.</p>
  
  <p>any suggestions??</p>