, , , , , . , .
, , , ( ) . : StringBuilder MemoryStream.
StringBuilder , , . , , StringBuilder.
StringBuilder. , Append(), Insert(), Remove(), Replace() indexer [], . Stringbuilder , , .
You can also load the file into a MemoryStream and then use a StringReader (or StringWriter) to get an interface with a stream (Read (), Peek (), ReadLine (), etc.) to control the string.
This is a bit more work than StringBuilder, but may be preferred if the Stream style approach is better for your application.
source
share