Jump to content

- - - - -

WinBuilder 2013 ini / text files syntax

  • Please log in to reply
No replies to this topic

#1 pscEx


    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
    European Union

Posted 22 July 2013 - 04:11 PM

please, see introducing post http://reboot.pro/to...er-2013-syntax/


IniFile ini = new IniFile(filePath)

boolean updateFile(boolean deleteEmpty)
boolean closeFile(boolean deleteEmpty)

int countSections()
boolean hasTextLine()
String listSections()
String listTexts()
String listChilds()
String lineInsert(int index, String value)
String lineInsert(String value)
String lineRead(int index)
String lineRemove(int index)
String lineWrite(int index, String value)
int lineIndexOf(String line)

boolean sectionExists(String section)
String sectionCreate(String section)
String sectionRemove(String section)
boolean sectionHasTextLine(String section)
int sectionCountKeys(String section)
int sectionCountTexts(String section)
int sectionCountChilds(String section)
String sectionListKeys(String section)
String sectionListTexts(String section)
String sectionListChilds(String section)
String sectionLineInsert(String section, int index, String value)
String sectionLineInsert(String section, String value)
String sectionLineRead(String section, int index)
String sectionLineRemove(String section, int index)
String sectionLineWrite(String section, int index, String value)
int sectionLineIndexOf(String section, String line)

boolean keyExists(String section, String key)
String keyRead(String section, String key, String default)
String keyRemove(String section, String key)
String keyWrite(String section, String key, String value)

String type return values:
What is read, written or deleted, null if no reasonable action / result

int type return values:
Queried value, -1 if no reasonable result

index of items is based on 0. There is a shortcut -1 for "last item"

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users