FD_F Posted February 8, 2009 Share Posted February 8, 2009 i using fread() to read file and i need to know when i have brake lines thanks Link to comment https://forums.phpfreaks.com/topic/144380-solved-how-i-can-get-eol-position/ Share on other sites More sharing options...
wildteen88 Posted February 8, 2009 Share Posted February 8, 2009 You'll have to detect them by the following escape characters \r\n windows \r mac \n *nix Link to comment https://forums.phpfreaks.com/topic/144380-solved-how-i-can-get-eol-position/#findComment-757615 Share on other sites More sharing options...
Mchl Posted February 8, 2009 Share Posted February 8, 2009 perhaps you need fgets instead? Link to comment https://forums.phpfreaks.com/topic/144380-solved-how-i-can-get-eol-position/#findComment-757616 Share on other sites More sharing options...
FD_F Posted February 8, 2009 Author Share Posted February 8, 2009 ok i`ll use fgets() thanks Link to comment https://forums.phpfreaks.com/topic/144380-solved-how-i-can-get-eol-position/#findComment-757627 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.