C# Class IniParser.FileIniDataParser

Represents an INI data parser for files.
Inheritance: IniParser.StreamIniDataParser
显示文件 Open project: rickyah/ini-parser Class Usage Examples

Public Methods

Method Description
FileIniDataParser ( ) : System

Ctor

FileIniDataParser ( IniDataParser parser ) : System

Ctor

ReadFile ( string filePath ) : IniParser.IniData

Implements reading ini data from a file.

Uses Encoding.Default codification for the file.

ReadFile ( string filePath, Encoding fileEncoding ) : IniParser.IniData

Implements reading ini data from a file.

WriteFile ( string filePath, IniParser.IniData parsedData, Encoding fileEncoding = null ) : void

Writes INI data to a text file.

Private Methods

Method Description
LoadFile ( string filePath ) : IniParser.IniData
LoadFile ( string filePath, Encoding fileEncoding ) : IniParser.IniData
SaveFile ( string filePath, IniParser.IniData parsedData ) : void

Method Details

FileIniDataParser() public method

Ctor
public FileIniDataParser ( ) : System
return System

FileIniDataParser() public method

Ctor
public FileIniDataParser ( IniDataParser parser ) : System
parser IniDataParser
return System

ReadFile() public method

Implements reading ini data from a file.
Uses Encoding.Default codification for the file.
public ReadFile ( string filePath ) : IniParser.IniData
filePath string /// Path to the file ///
return IniParser.IniData

ReadFile() public method

Implements reading ini data from a file.
public ReadFile ( string filePath, Encoding fileEncoding ) : IniParser.IniData
filePath string /// Path to the file ///
fileEncoding Encoding /// File's encoding. ///
return IniParser.IniData

WriteFile() public method

Writes INI data to a text file.
public WriteFile ( string filePath, IniParser.IniData parsedData, Encoding fileEncoding = null ) : void
filePath string /// Path to the file. ///
parsedData IniParser.IniData /// IniData to be saved as an INI file. ///
fileEncoding Encoding /// Specifies the encoding used to create the file. ///
return void