On 10/2/2022 1:16 AM, Hans Henrik Bergan wrote:
... actually i forgot that the default fopen mode is "rb"
[...]
changing the code to SplFileObject("bug.txt", "rb");
makes the code work

I don't think you wrote what you meant. You're not saying that explicitly specifying the default value changes the behavior, are you? Maybe you meant to say that the default mode is "r"?

Ken

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to