Rumble Posted December 17, 2006 Share Posted December 17, 2006 hiThis is weird,everywhere I looked, it sais that inorder to [b]save to a text file[/b], I'l have to add a [b]"\n"[/b] at the end of the line.but after I do it, when I open the text file in notepad, all the lines I have saved to it appear in one line.and what seperates between the lines is an invisible charachter.any ideas?thank you. Link to comment https://forums.phpfreaks.com/topic/30963-n-doesnt-do-the-job/ Share on other sites More sharing options...
zq29 Posted December 17, 2006 Share Posted December 17, 2006 Different operating system families have different line-ending conventions. When you write a text file and want to insert a line break, you need to use the correct line-ending character(s) for your operating system. Unix based systems use \n as the line ending character, Windows based systems use \r\n as the line ending characters and Macintosh based systems use \r as the line ending character. Link to comment https://forums.phpfreaks.com/topic/30963-n-doesnt-do-the-job/#findComment-142868 Share on other sites More sharing options...
Rumble Posted December 17, 2006 Author Share Posted December 17, 2006 This was the fastest reply I have ever received in my life.WOW(I beleive I tried LF CR, but not the other way around)Thanx, I'l give it a try Link to comment https://forums.phpfreaks.com/topic/30963-n-doesnt-do-the-job/#findComment-142873 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.