readFileContent method
Reads file content safely
filePath - Path to the file
Returns file content or empty string if file doesn't exist
Implementation
String readFileContent(String filePath) {
if (!exists(filePath)) {
return '';
}
try {
return read(filePath).join('\n');
} catch (e) {
StatusHelper.warning('Failed to read file $filePath: $e');
return '';
}
}