# read

# read stream as string

read whole stream as string with UTF8 encoding ignoring BOM character and with 4KB buffer size.

string read(Stream stream)
// source code from the unit test
var message = "Hello World"
var stream = new MemoryStream(Encoding.UTF8.GetBytes(message))

read(stream);
// "Hello World"

Last Updated: 7/16/2020, 11:00:33 PM