OpenText Method

Microsoft Deployment Tools

Deployment Tools Foundation OpenText Method
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionArchiveFileInfoOpenText()()()
Opens the archive file reading text with UTF-8 encoding without actually extracting the file to disk.
Declaration Syntax
C# Visual Basic Visual C++
public StreamReader OpenText()
Public Function OpenText As StreamReader
public:
StreamReader^ OpenText()
Return Value
A reader for reading text directly from the packed file. Like any reader this should be closed/disposed as soon as it is no longer needed.
Remarks
To open an archived text file with different encoding, use the OpenRead()()() method and pass the returned stream to one of the StreamReader constructor overloads.

Assembly: Microsoft.Deployment.Compression (Module: Microsoft.Deployment.Compression) Version: 3.0.0.0 (3.5.1623.0)