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