Hi all,
I' m searching how to write in a file on a new line each times whith
fputs().
Because i want read the file whith file() and so ,have one line per indice
in a table.
So i need to write on a new line each time.
?
$fic = fopen(toto.txt,a+);
fputs($fic,on a new line);
How about this:
fputs($fic,on a new line\n);
This works in c.
Hi all,
I' m searching how to write in a file on a new line each times whith
fputs().
Because i want read the file whith file() and so ,have one line per indice
in a table.
So i need to write on a new line each time.
?
Use \n for newline. \r\n for Windows.
fputs($fp,value\n);
---John Holmes...
- Original Message -
From: arnaud gonzales [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Wednesday, May 22, 2002 3:56 PM
Subject: [PHP] fputs() pblm how write on a new line each time ?
Hi all,
I
3 matches
Mail list logo