Difference between revisions of "GetINISectionNames"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Gribbleshnibit8
(Created page with "{{Function |origin = LU |summary = Returns an array containing the names of all sections in an INI file. |name = GetINISectionNames |returnType = array |arguments = {{...")
 
imported>Pintocat
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Function
{{Function
  |origin = LU
  |origin = LU
  |summary = Returns an array containing the names of all sections in an INI file.
  |summary = Returns an array containing the names of all sections in an INI file with 64k buffer.
  |name = GetINISectionNames
  |name = GetINISectionNames
  |returnType = array
  |returnType = array
Line 9: Line 9:
   |Type = string
   |Type = string
   |Optional = y
   |Optional = y
|example=GetINISectionNames "FilePath\FileName.ini"
   }}
   }}
}}
}}

Latest revision as of 22:12, 3 March 2017

< [[::Category:Functions|Category:Functions]]

A function added by the Lutana NVSE plugin.

Description

Returns an array containing the names of all sections in an INI file with 64k buffer.

Syntax

[help]
(array) GetINISectionNames filename:string

Notes

INI files are read from and written to in the Data\config\ folder (as in MCM's INI functions). Format Example

If no filename is specified, the name of the mod the function is called from is used. Subdirectories can be defined in the path, e.g. "subDir\nameOfFile"

Writing to an INI file that does not exist will create it along with any non-existent subdirectories in its path.

A keystring is a string containing both the section and key in the format: "Section:Key" ('\' and '/' may also be used as the delimiter.)

See Also