Function | loadProperties | Loads data from a file into a dict |
Function | loadList | loads data from a file into a list |
The data in the file should have the format:
key=value
If the file doesn't exist, it will be created. If no filename is given an empty dict is returned
Parameters | propertiesFile | The file to deal with (type: string ) |
Returns | (type: dict ) |
This function loads simply each line of the file into a list. If the filename is empty, a empty list is returned. If the file given doesn't exist, it will be created.
Parameters | listFile | the file to deal with (type: string ) |
Returns | (type: list ) |