C# Class Fusion.Core.IniParser.FileIniDataParser

Represents an INI data parser for files.
Inheritance: StreamIniDataParser
Mostrar archivo Open project: demiurghg/FusionEngine

Public Methods

Method Description
FileIniDataParser ( ) : System

Ctor

FileIniDataParser ( IniDataParser parser ) : System

Ctor

ReadFile ( string filePath ) : IniData

Implements reading ini data from a file.

Uses Encoding.Default codification for the file.

ReadFile ( string filePath, Encoding fileEncoding ) : IniData

Implements reading ini data from a file.

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

Writes INI data to a text file.

Private Methods

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

Method Details

FileIniDataParser() public method

Ctor
public FileIniDataParser ( ) : System
return System

FileIniDataParser() public method

Ctor
public FileIniDataParser ( IniDataParser parser ) : System
parser Fusion.Core.IniParser.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 ) : IniData
filePath string /// Path to the file ///
return Fusion.Core.IniParser.Model.IniData

ReadFile() public method

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

WriteFile() public method

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