getFileContens function
Returns the contents of a file as a string.
Implementation
String getFileContens() {
String result = '';
if (fileExists(ruleFile) == true) {
result = File(ruleFile).readAsStringSync();
} else {
printColoredString('No "$ruleFile" found!', 'red');
}
return result;
}