Comment Comment by Mindless2112 This is a pretty worthless comparison.* The C# version invokes EndOfStream up to 4096 times for every 1 call to feof in PHP version.* The C# version opens the file in text mode (and thus does UTF-8 decoding) whereas the PHP version opens the file in binary mode. parent Mindless2112 4 years ago
* The C# version invokes EndOfStream up to 4096 times for every 1 call to feof in PHP version.
* The C# version opens the file in text mode (and thus does UTF-8 decoding) whereas the PHP version opens the file in binary mode.