static string ReadNullTerminatedString (System.IO.Stream stream, long offset)

Parameters

NameTypeDescription
stream System.IO.Stream The stream to read from.
offset long Offset where to start reading, from the beginning of the stream.

Returns

TypeDescription
string

Exceptions

TypeWhen
System.IO.EndOfStreamException The stream ends before the null terminator.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.