The following block of source code shows how to include a block of ProvideX code.
! ** It is also possible to process all of the properties in a file using the built-in iterator
! ** as the following example demonstrates:%PvxCodeBegin%
! ** coPropFile = new("properties_file", aPropFile$)
! ** coPropFile'iterator_init()
! ** WHILE coPropFile'iterator_has_next()
! ** oNVPair = coPropFile'iterator_get_next()
! ** IF oNVPair <> -1 {
! ** ! Get the Name and Value from the 'name_value_pair' object
! ** tagKeyword$ = oNVPair'getName$()
! ** tagValue$ = oNVPair'getValue$()
! ** ...
! ** }
! ** WEND
! ** %PvxCodeEnd%
! **
! ** @Constructor Manage a properties file in memory.
! ** @param aFile$ (optional) The name of the INI or Properties file to be loaded into memory
DEF CLASS "properties_file" create required