Comment Comment by withinboredom The C# version only makes a syscall if the buffer is empty: https://github.com/dotnet/runtime/blob/1ba0394d71a4ea6bee7f6...To read in binary, you open with 'rb' and not just 'r' parent withinboredom 4 years ago
To read in binary, you open with 'rb' and not just 'r'