When writing(adding) text to a text file, how can you insert a line break?
The file pointer is at the bottom of the file, and it adds the text successfully, but it does NOT add a line break, so if more text is added to the file, it's added right after the previous.
eg.
$txt1 = "some text"
$txt2 = "some more text"
[code to add text here]
results in:
"some textsome more text"
when read from the file.
I've tried using the "/n" added after the text being written to file, but all it does is add "/n" as a part of the text written to the file.
eg.
when read:
"some text/n"
I've searched the forums and found only this, which seems to work for most...I'm running a Windows machine though, IIS5 & PHP 4.3.4.
I also found somewhere, that I should open the file as a binary file if running Windows, using the fopen() 'b', but there is no 'b' option for fopen()!?
Any suggestions, ideas on how to make it actually ADD a line break in the text file (make it write on a new line next time text is added) would be greatly appreciated.