C# Class Fusion.Core.IniParser.FileIniDataParser

Represents an INI data parser for files.
Inheritance: StreamIniDataParser
Afficher le fichier Open project: demiurghg/FusionEngine

Méthodes publiques

Méthode 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

Méthode Description
LoadFile ( string filePath ) : IniData
LoadFile ( string filePath, Encoding fileEncoding ) : IniData
SaveFile ( string filePath, IniData parsedData ) : void

Method Details

FileIniDataParser() public méthode

Ctor
public FileIniDataParser ( ) : System
Résultat System

FileIniDataParser() public méthode

Ctor
public FileIniDataParser ( IniDataParser parser ) : System
parser Fusion.Core.IniParser.Parser.IniDataParser
Résultat System

ReadFile() public méthode

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 ///
Résultat Fusion.Core.IniParser.Model.IniData

ReadFile() public méthode

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. ///
Résultat Fusion.Core.IniParser.Model.IniData

WriteFile() public méthode

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. ///
Résultat void