epic_era Posted January 31, 2007 Share Posted January 31, 2007 I am having some problems with a flat file to witch Im writing but when I view it on an editor of anykind instead of adopting the break line it simply shows a very strange character, I don`t know how to break a line and make it look like that in a text editor, I`m usin the \n to break line Can anyone help me?? Link to comment https://forums.phpfreaks.com/topic/36556-line-breaks-that-really-breaks-the-line-when-viewing-in-notepad-or-other/ Share on other sites More sharing options...
fert Posted January 31, 2007 Share Posted January 31, 2007 \n\r Link to comment https://forums.phpfreaks.com/topic/36556-line-breaks-that-really-breaks-the-line-when-viewing-in-notepad-or-other/#findComment-174042 Share on other sites More sharing options...
Jessica Posted January 31, 2007 Share Posted January 31, 2007 Can you post the code please? Fert, I think you mean \r\n, yeah? Link to comment https://forums.phpfreaks.com/topic/36556-line-breaks-that-really-breaks-the-line-when-viewing-in-notepad-or-other/#findComment-174045 Share on other sites More sharing options...
fert Posted January 31, 2007 Share Posted January 31, 2007 I always get them mixed up Link to comment https://forums.phpfreaks.com/topic/36556-line-breaks-that-really-breaks-the-line-when-viewing-in-notepad-or-other/#findComment-174049 Share on other sites More sharing options...
epic_era Posted February 2, 2007 Author Share Posted February 2, 2007 THE CODE THAT I'M USING IS THE FOLLOWING: $Datax="$numemp$tipcarg$y$E$fecha\n"; fwrite($Handle, $Datax); HELP ??? Link to comment https://forums.phpfreaks.com/topic/36556-line-breaks-that-really-breaks-the-line-when-viewing-in-notepad-or-other/#findComment-175631 Share on other sites More sharing options...
marcus Posted February 2, 2007 Share Posted February 2, 2007 Use \r\n Link to comment https://forums.phpfreaks.com/topic/36556-line-breaks-that-really-breaks-the-line-when-viewing-in-notepad-or-other/#findComment-175632 Share on other sites More sharing options...
epic_era Posted February 2, 2007 Author Share Posted February 2, 2007 Use \r\n I ALREADY HAVE AND THE RESULT IS THE SAME Link to comment https://forums.phpfreaks.com/topic/36556-line-breaks-that-really-breaks-the-line-when-viewing-in-notepad-or-other/#findComment-175635 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.