newbie_new Posted March 11, 2008 Share Posted March 11, 2008 hello, I need your help please... how to write a newline at the end of the string while writing in text file with fwrite() on windows paltform? thanks, ??? Link to comment https://forums.phpfreaks.com/topic/95649-fwrite-writing-a-newline/ Share on other sites More sharing options...
conker87 Posted March 11, 2008 Share Posted March 11, 2008 "\r\n" I think. Link to comment https://forums.phpfreaks.com/topic/95649-fwrite-writing-a-newline/#findComment-489696 Share on other sites More sharing options...
discomatt Posted March 11, 2008 Share Posted March 11, 2008 "\r\n" for windows/notepad-compatible "\n" for anything else Link to comment https://forums.phpfreaks.com/topic/95649-fwrite-writing-a-newline/#findComment-489700 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.