Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
withinboredom
on March 16, 2022
|
parent
|
context
|
favorite
| on:
Yes, PHP is faster than C#
That’s the api provided, and part of the point. The other option is to read the buffer directly, but it isn’t exposed to the programmer.
h3h3
on March 17, 2022
|
next
[–]
the overload is right below it
int StreamReader.Read() int StreamReader.Read(char[] buffer, int index, int count)
https://github.com/dotnet/runtime/blob/1ba0394d71a4ea6bee7f6...
deltaci
on March 17, 2022
|
prev
[–]
You just need to do File.OpenRead instead of OpenText to get a FileStream, then you can read the buffer
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: