INI Functions
Functions for reading and writing INI configuration files.
ReadIniFileAsString
Pure Reads an entire INI file as a string.
C++
FString ReadIniFileAsString(const FString& FilePath)
Category: EFM|Data|INI
Blueprint Node
ReadIniValue
Pure Reads a specific value from an INI file.
C++
FString ReadIniValue(const FString& FilePath, const FString& Section, const FString& Key)
| Parameter | Type | Description |
|---|---|---|
FilePath | FString | Full path to the INI file |
Section | FString | Section name (e.g., [Settings]) |
Key | FString | Key name within the section |
Returns: The value string, or empty if not found
Category: EFM|Data|INI
Blueprint Node
WriteIniFile
Callable Deprecated - use WriteIniEntries instead. Writes raw, already-formatted INI text to a file as-is, overwriting anything already there. Doesn't understand INI structure, it's just a text dump.
C++
bool WriteIniFile(const FString& FilePath, const FString& Content)
| Parameter | Type | Description |
|---|---|---|
FilePath | FString | Full file path, including the .ini extension |
Content | FString | The full INI text to write |
Category: EFM|Data|INI
Blueprint Node
WriteIniEntries
Callable Writes a fully-structured INI file in one call from a list of Section/Key/Value entries, grouped by section automatically.
C++
bool WriteIniEntries(const FString& FilePath, const TArray<FEFMIniEntry>& Entries)
| Parameter | Type | Description |
|---|---|---|
FilePath | FString | Full file path, including the .ini extension. Overwrites anything already there. |
Entries | TArray<FEFMIniEntry> | The Section/Key/Value entries to write |
Returns: true if the file was written successfully
Category: EFM|Data|INI
Blueprint Node
WriteIniValue
Callable Writes a single key-value pair to an INI file.
C++
bool WriteIniValue(const FString& FilePath, const FString& Section, const FString& Key, const FString& Value)
| Parameter | Type | Description |
|---|---|---|
FilePath | FString | Full path to the INI file |
Section | FString | Section name |
Key | FString | Key name |
Value | FString | Value to write |
Returns: true if the value was written successfully
Category: EFM|Data|INI
Blueprint Node
Example
// Read a specific value
Volume = ReadIniValue(GameConfigPath, "Audio", "MasterVolume")
// Write a value
WriteIniValue(GameConfigPath, "Audio", "MasterVolume", "0.75")
// Read entire file
IniContent = ReadIniFileAsString(GameConfigPath)
// Write a fully-structured INI file in one call
Entries = [
MakeIniEntry("Audio", "MasterVolume", "0.75"),
MakeIniEntry("Audio", "MusicVolume", "0.5"),
MakeIniEntry("Video", "Resolution", "1920x1080")
]
WriteIniEntries(GameConfigPath, Entries)