Re: Writing text files in Windows 2k
| From: | Adam Voigt | Date: | Mon, 10 Feb 2003 14:17:56 +0000 |
| Subject: | Re: Writing text files in Windows 2k | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135059@lists.php.net to get a copy of this message | ||
Doh, doh, doh!
Just saw "b" was allowed for binary on the fopen page. Never mind.
On Mon, 2003-02-10 at 09:13, Adam Voigt wrote:
Precisely where did you get the "b" in your second parameter to
fopen?
I didn't see it on the fopen manual page at:
http://www.php.net/fopen
If you just want to write to the file and not read it, try changing
the second
parameter to just "w".
On Mon, 2003-02-10 at 03:34, Joe Njeru wrote:
Hi All,
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.
Thanks in advance
Joe Njeru
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt (adam@cryptocomm.com)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
--
Adam Voigt (adam@cryptocomm.com)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc