Method
IniDocument.FromStream
FromStream(Stream, Encoding?) #
Creates an new IniDocument document from the specified stream using the specified encoding.
public static IniDocument FromStream(Stream stream, Encoding? encoding = null)Parameters #
stream Stream
The input stream where the INI document is.
encoding Encoding?
Optional. The encoding used to read the stream. Defaults to UTF-8.
Returns #
FromStream(TextReader) #
Creates an new IniDocument document from the specified TextReader.
public static IniDocument FromStream(TextReader reader)Parameters #
reader TextReader
The TextReader instance.