void = List_LoadFromFile(sListVarName, sFullPathFilename, bCreateIfNeeded)
➢All existing entries of the list sListVarName will be cleared and replaced by the contents of the file sFullPathFilename.
The macro code below loads the contents of a text file, processes each entry of the list, and then saves it back.
// load the list of country names override
List_LoadFromFile(sListCountryNames, sFullPathOfTextFile, true)
for nItem = 1 to List_Count(sListCountryNames) step 1
// make some changes to some or all of the entries
// save it back to file
See also: list macro functions.
Topic 178385, last updated on 18-Apr-2020