Read files from a folder, specified by a file name pattern, into a list of dictionaries
readDictionaries(folder, pattern = "^dictionary_(.*)[.]txt$")
folder | path to the folder containing the files to be read |
---|---|
pattern | regular expression to match the names of the files to be read. The pattern is expected to contain a pair of parentheses around the part of the file that shall be used as element name in the returned list |