Jump to content

New Line in text file help


centralfm

Recommended Posts

I'm trying to create a text file in php to generate a playlist.

 

The problem is that I cannot manage to create a new line in the text file. Using /n still places text in the same line and just inserts a symbol to indicate the 'new line'. Using <br> just works when viewing the document in HTML (which is not what i need in this case). But what I want is to physically insert a new line in the text file so that when i open the generated file using notepad i see that there are actually new lines in the document and so that the playlist can be read normally with a music player.

 

Any help would be appreciated!

 

Thanks

 

Andre`

Link to comment
https://forums.phpfreaks.com/topic/42659-new-line-in-text-file-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.