Meltac
messing with code (Resident)
 On forum: 01/21/2010
Messages: 1519
|
LUA: Iterate all lines of a ini-file section
Hi, I'm working on a script where I need to read and iterate all lines of a specific section, regardless of their name. More precisely, I need to make a loop over all weather times under the section [sect_default_weather].
I only found line_count, line_exist, and r_line, which all require a specific line name, but since I don't know what lines a weather section contains I cannot use those functions.
Any ideas?
Something considered impossible is only something that hasn't been done yet.
☢ Dynamic Shaders: www.moddb.com/mods/dynamic-shaders
|