Re: Writing text files in Windows 2k

From: Date: Mon, 10 Feb 2003 08:51:45 +0000
Subject: Re: Writing text files in Windows 2k
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-135022@lists.php.net to get a copy of this message
I need to write some data to a text file but when I use $this->ao_file_handle = fopen($this->ao_file_name,"ab"); $str_txt.= "\n"; fwrite($this->ao_file_handle,$str_txt); It does not display the new line. I saw somwhere that for DOS files you need to use ASCII LF and CR. Which I did. It still does not display the new line.
LF CR = "\r\n" What did you view the file with?

« previous php.general (#135022) next »