in reply to printing text to a file in binary

Are you sure you had the line breaks in the first place? What you see in the textarea is not necessarily what you are going to get in the CGI program. Google can lead you to many discussions of this.

Good luck :)

--
brian d foy <brian@stonehenge.com>

Replies are listed 'Best First'.
Re^2: printing text to a file in binary
by Anonymous Monk on Jun 24, 2005 at 02:26 UTC
    it is kind of a content manager, it is a single script that receives text which is actually HTML formatted (tabs and lines and such) and takes the HTML that is sent to it and saves it to a .html file. The created page displays fine, but when downloaded or the source is viewed all the html is just one huge block of text.....