in reply to cgi print file to screen
You are printing HTML, so if you want newlines you either need to wrap <pre> tags around the output, or put <br> tags at the end of each line.