C# | Best way to read file into byte array in selected encoding? : Now i use something like that:

    Encoding.UTF8.GetBytes(File.ReadAllText(filename))

Any suggestions how to do that better?

And what encoding uses `File.ReadAllBytes(filename)` method?

P.S. I need utf-8 byte arrays to store files in db