| BinaryReaderReadString Method |
Reads a string from the current stream. The string is prefixed with the length, encoded as an integer seven bits at a time.
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntaxpublic virtual string ReadString()
Return Value
Type:
StringThe string being read.
Exceptions| Exception | Condition |
|---|
| EndOfStreamException | The end of the stream is reached. |
| ObjectDisposedException | The stream is closed. |
| IOException | An I/O error occurs. |
See Also