|
|
|
|
|
by sedatk
659 days ago
|
|
Then it’s just this with C#: public byte[] Read(string path) => File.ReadAllBytes(path);
I think the article’s trying to explain a concept using an arbitrary piece of code from stdlib, not necessarily that specific scenario (opening and reading all bytes from a file). |
|