getAndCheckIfConfigFileExists method
If the file does not exist, logs an error message via LoggerHelper.
Returns the file content as a String. Throws a ConfigFileNotFoundException if the file is not specified
Implementation
Future<String> getAndCheckIfConfigFileExists(String configFile) async {
final file = File(configFile);
if (!file.existsSync()) {
throw ConfigFileNotFoundException();
}
final textContent = await file.readAsString();
return textContent;
}