IniFile.ReadFile Method

IniFileIO

IniFileReadFile Method

IniFileIO Documentation
Reads the current contents of FileName into the object.

Namespace:  IniFileIO
Assembly:  IniFileIO (in IniFileIO.dll) Version: 1.4.0.6028 (1.4.0.06028)
Syntax

public void ReadFile()
Public Sub ReadFile
public:
void ReadFile()
member ReadFile : unit -> unit 
Remarks

Regarding comments and association with IniFileSections or IniFileKeys:

All comments appearing immediately above a section (regardless of whitespace) will be associated with the respective section. The same rule applies for IniFileKeys as well.

The one exception is when comments appear at the end of a file where there is no section or key below it to assign to. When this happens, a blank IniFileKey is generated with an empty Name and Value property, but will have the Comments property containing the comments.

To avoid pulling this "placeholder" key, use the GetAllKeysWithAName(String) method.

See Also

Reference