Another possible solution using Encoding :
Encoding.Default.GetString(byteArray);
You can optionally split it to get the lines:
Encoding.Default.GetString(byteArray).Split('\n');
You can also select a specific encoding, such as UTF-8, instead of using Default .
Houndolon
source share