Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

INI Library - FAST in memory functions NO REGEX


  • Please log in to reply
48 replies to this topic
Rseding91
  • Members
  • 703 posts
  • Last active: Apr 02 2016 05:05 AM
  • Joined: 07 Jun 2010

Question, is RIni able to read/write a key's value in a file that has no sections defined? I have a cfg file that looks like a standard ini, just does not have any sections.

 

 

Nope, it needs a section (any section) specified before it will know what to do with the file.

 

You could do FileRead and then use the RIni_VariableToRIni() function and concatenate a section on the front of the variable contents.



djvj
  • Members
  • 70 posts
  • Last active: Jul 22 2016 02:54 AM
  • Joined: 19 Sep 2010

Hmm, that's an interesting solution, thanks.



Guldberg
  • Members
  • 1 posts
  • Last active: Mar 15 2014 09:14 PM
  • Joined: 15 Mar 2014

Could you give an example on how to load a list of all sections in a ini or keys in a section into a listview or similar.



RobS1990
  • Members
  • 25 posts
  • Last active: May 13 2015 03:53 AM
  • Joined: 15 Oct 2012

sorry for the noob q but can anybody tell me how to free up the memory after I have saved the ini data to a file?

 

I thought RIni_Shutdown might have done the trick but it doesn't appear to make a difference to the script's memory usage.

 

EDIT: my mistake :p