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 Quote 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 Quote 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? Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.